pub struct StatusSender<S> { /* private fields */ }
Expand description
A convenience struct around the channel used to send a status S
from the worker to the StatusExecutor
Implementations§
Source§impl<S> StatusSender<S>where
S: Send,
impl<S> StatusSender<S>where
S: Send,
Sourcepub fn send(&self, s: S) -> bool
pub fn send(&self, s: S) -> bool
Send S
to the StatusExecutor
this will return true
as long as the underlying channel exists.
You can use the return value to check if the StatusExecutor
was dropped.
Examples found in repository?
More examples
Auto Trait Implementations§
impl<S> Freeze for StatusSender<S>
impl<S> RefUnwindSafe for StatusSender<S>
impl<S> Send for StatusSender<S>where
S: Send,
impl<S> Sync for StatusSender<S>where
S: Send,
impl<S> Unpin for StatusSender<S>
impl<S> UnwindSafe for StatusSender<S>
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