pub struct Message<T, B: Eq + Hash> {
pub data: T,
pub guard: Guard<B>,
}Expand description
A message containing data and a Guard that tracks delivery.
Fields§
§data: TThe data of the message.
guard: Guard<B>The Guard that tracks delivery.
When all clones of the guard are dropped, the message is considered delivered.
Auto Trait Implementations§
impl<T, B> !RefUnwindSafe for Message<T, B>
impl<T, B> !UnwindSafe for Message<T, B>
impl<T, B> Freeze for Message<T, B>
impl<T, B> Send for Message<T, B>
impl<T, B> Sync for Message<T, B>
impl<T, B> Unpin for Message<T, B>
impl<T, B> UnsafeUnpin for Message<T, B>
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