pub enum ClientStrategy<'a> {
UnixSocket(usize),
InternalTcpPort(&'a dyn Host),
ForwardedTcpPort(&'a dyn Host),
}Expand description
Like BindType, but includes metadata for determining whether a connection is possible.
Variants§
Auto Trait Implementations§
impl<'a> Freeze for ClientStrategy<'a>
impl<'a> !RefUnwindSafe for ClientStrategy<'a>
impl<'a> Send for ClientStrategy<'a>
impl<'a> Sync for ClientStrategy<'a>
impl<'a> Unpin for ClientStrategy<'a>
impl<'a> !UnwindSafe for ClientStrategy<'a>
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>
§impl<T> ToSinkBuild for T
impl<T> ToSinkBuild for T
§fn iter_to_sink_build(self) -> SendIterBuild<Self>
fn iter_to_sink_build(self) -> SendIterBuild<Self>
§fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
fn stream_to_sink_build(self) -> SendStreamBuild<Self>where
Self: Sized + Stream,
Starts a [
SinkBuild] adaptor chain to send all items from self as a [Stream].