pub struct NotifyPermit<'a> { /* private fields */ }Expand description
A borrowed permit to send a single notification.
Created by HandlerCtx::permit or HandlerCtx::try_permit.
The permit guarantees a slot in the notification channel, making
send synchronous — only serialization can fail.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for NotifyPermit<'a>
impl<'a> !RefUnwindSafe for NotifyPermit<'a>
impl<'a> Send for NotifyPermit<'a>
impl<'a> Sync for NotifyPermit<'a>
impl<'a> Unpin for NotifyPermit<'a>
impl<'a> !UnwindSafe for NotifyPermit<'a>
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