pub struct Message<T, B: Eq + Hash + Clone> {
pub data: T,
pub guard: Arc<Guard<B>>,
}
Expand description
A message containing data and a Guard that tracks delivery.
Fields§
§data: T
The data of the message.
guard: Arc<Guard<B>>
The Guard that tracks delivery.
When no outstanding references to the guard exist, the message is considered delivered.
Auto Trait Implementations§
impl<T, B> Freeze for Message<T, B>where
T: Freeze,
impl<T, B> RefUnwindSafe for Message<T, B>where
T: RefUnwindSafe,
B: RefUnwindSafe,
impl<T, B> Send for Message<T, B>
impl<T, B> Sync for Message<T, B>
impl<T, B> Unpin for Message<T, B>where
T: Unpin,
impl<T, B> UnwindSafe for Message<T, B>where
T: UnwindSafe,
B: RefUnwindSafe,
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