Struct Endpoints
pub(crate) struct Endpoints {
pub(crate) cmd_rx: Receiver<Command>,
pub(crate) shutdown_rx: Receiver<()>,
pub(crate) msg_tx: Sender<Message>,
pub(crate) status_tx: Sender<ConnectionStatus>,
}Available on crate feature
tokio only.Expand description
The channel ends the event loop serves.
Fields§
§cmd_rx: Receiver<Command>Commands from the client handles.
shutdown_rx: Receiver<()>Signal from the owner handle to stop.
msg_tx: Sender<Message>Received messages for the application.
status_tx: Sender<ConnectionStatus>Connection status for the client handles.
Auto Trait Implementations§
impl !RefUnwindSafe for Endpoints
impl !UnwindSafe for Endpoints
impl Freeze for Endpoints
impl Send for Endpoints
impl Sync for Endpoints
impl Unpin for Endpoints
impl UnsafeUnpin for Endpoints
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
§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 more