Enum snocat::common::protocol::proxy_tcp::TcpStreamTarget [−][src]
pub enum TcpStreamTarget { Port(u16), SocketAddr(SocketAddr), Dns(DnsTarget), }
Variants
Port(u16)
SocketAddr(SocketAddr)
Dns(DnsTarget)
Trait Implementations
Format a RouteAddress from a TcpStreamTarget
Try to parse a RouteAddress into a TcpStreamTarget
Expects /tcp/
DNS resolution is not handled here, only parsed to its own class for use later.
/tcp/
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TcpStreamTarget
impl Send for TcpStreamTarget
impl Sync for TcpStreamTarget
impl Unpin for TcpStreamTarget
impl UnwindSafe for TcpStreamTarget
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more