pub struct ChannelMux { /* private fields */ }Available on crate feature
deploy and (crate features docker_runtime or ecs_runtime) only.Expand description
A shared accept loop that listens on a single port and dispatches incoming connections to the right consumer based on the channel name sent in the handshake.
Each node creates one of these at startup. Individual channels register themselves and receive their connection via a mpsc channel.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ChannelMux
impl RefUnwindSafe for ChannelMux
impl Send for ChannelMux
impl Sync for ChannelMux
impl Unpin for ChannelMux
impl UnsafeUnpin for ChannelMux
impl UnwindSafe for ChannelMux
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> ⓘ
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 moreCreates a shared type from an unshared type.