pub struct Forwarder<T> { /* private fields */ }
Expand description
An ngrok forwarder.
Represents a tunnel that is being forwarded to a URL.
Implementations§
Trait Implementations§
source§impl<T> EndpointInfo for Forwarder<T>where
T: EndpointInfo,
impl<T> EndpointInfo for Forwarder<T>where
T: EndpointInfo,
source§impl<T> TunnelCloser for Forwarder<T>where
T: TunnelCloser + Send,
impl<T> TunnelCloser for Forwarder<T>where
T: TunnelCloser + Send,
source§impl<T> TunnelInfo for Forwarder<T>where
T: TunnelInfo,
impl<T> TunnelInfo for Forwarder<T>where
T: TunnelInfo,
source§fn forwards_to(&self) -> &str
fn forwards_to(&self) -> &str
Returns a human-readable string presented in the ngrok dashboard
and the Tunnels API. Use the HttpTunnelBuilder::forwards_to,
TcpTunnelBuilder::forwards_to, etc. to set this value
explicitly.
Auto Trait Implementations§
impl<T> Freeze for Forwarder<T>where
T: Freeze,
impl<T> RefUnwindSafe for Forwarder<T>where
T: RefUnwindSafe,
impl<T> Send for Forwarder<T>where
T: Send,
impl<T> Sync for Forwarder<T>where
T: Sync,
impl<T> Unpin for Forwarder<T>where
T: Unpin,
impl<T> UnwindSafe for Forwarder<T>where
T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more