pub enum ServerStrategy {
Direct(BaseServerStrategy),
Many(BaseServerStrategy),
Demux(HashMap<u32, ServerStrategy>),
Merge(Vec<ServerStrategy>),
Tagged(Box<ServerStrategy>, u32),
Null,
}Expand description
Types of connection that a service can receive when configured as the server.
Variants§
Direct(BaseServerStrategy)
Many(BaseServerStrategy)
Demux(HashMap<u32, ServerStrategy>)
Merge(Vec<ServerStrategy>)
Tagged(Box<ServerStrategy>, u32)
Null
Auto Trait Implementations§
impl Freeze for ServerStrategy
impl RefUnwindSafe for ServerStrategy
impl Send for ServerStrategy
impl Sync for ServerStrategy
impl Unpin for ServerStrategy
impl UnwindSafe for ServerStrategy
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].