Struct stakker::sync::ChannelGuard
source · pub struct ChannelGuard(_);
Expand description
Guard for a channel
When this is dropped, the associated Channel
is closed and any
pending messages are dropped. This should be kept in the actor
that receives messages so that any failure or other termination of
the actor results in correct cleanup.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ChannelGuard
impl !Send for ChannelGuard
impl !Sync for ChannelGuard
impl Unpin for ChannelGuard
impl !UnwindSafe for ChannelGuard
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