pub enum ServerStrategy {
Direct(BaseServerStrategy),
Many(BaseServerStrategy),
Demux(BTreeMap<u32, ServerStrategy>),
Merge(Box<AppendOnlyVec<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(BTreeMap<u32, ServerStrategy>)
Merge(Box<AppendOnlyVec<ServerStrategy>>)
AppendOnlyVec has a quite large inline array, so we box it.
Tagged(Box<ServerStrategy>, u32)
Null
Auto Trait Implementations§
impl !RefUnwindSafe for ServerStrategy
impl !UnwindSafe for ServerStrategy
impl Forget for ServerStrategy
impl Freeze for ServerStrategywhere
*const LeafNode<u32, ServerStrategy> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(u32, ServerStrategy)>>: Freeze,
*const AppendOnlyVec<ServerStrategy> is !null: Freeze,
PhantomData<AppendOnlyVec<ServerStrategy>>: Freeze,
*const ServerStrategy is !null: Freeze,
PhantomData<ServerStrategy>: Freeze,
impl Move for ServerStrategy
impl Send for ServerStrategywhere
NodeRef<Owned, u32, ServerStrategy, LeafOrInternal>: Send,
BoxRaw<(u32, ServerStrategy)>: Send,
BoxRaw<AppendOnlyVec<ServerStrategy>>: Send,
BoxRaw<ServerStrategy>: Send,
impl Sync for ServerStrategywhere
NodeRef<Owned, u32, ServerStrategy, LeafOrInternal>: Sync,
BoxRaw<(u32, ServerStrategy)>: Sync,
BoxRaw<AppendOnlyVec<ServerStrategy>>: Sync,
BoxRaw<ServerStrategy>: Sync,
impl Unpin for ServerStrategywhere
*const LeafNode<u32, ServerStrategy> is !null: Unpin,
Box<(u32, ServerStrategy)>: Unpin,
Box<AppendOnlyVec<ServerStrategy>>: Unpin,
Box<ServerStrategy>: Unpin,
impl UnsafeUnpin for ServerStrategywhere
*const LeafNode<u32, ServerStrategy> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(u32, ServerStrategy)>>: UnsafeUnpin,
*const AppendOnlyVec<ServerStrategy> is !null: UnsafeUnpin,
PhantomData<AppendOnlyVec<ServerStrategy>>: UnsafeUnpin,
*const ServerStrategy is !null: UnsafeUnpin,
PhantomData<ServerStrategy>: UnsafeUnpin,
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].