pub struct ConcurrentWriteGuard<'a, P: Payload> { /* private fields */ }Expand description
Write guard — holds a write lock and dereferences (mutably) to Message<P>.
Methods from Deref<Target = Message<P>>§
Sourcepub fn payload_mut(&mut self) -> &mut P
pub fn payload_mut(&mut self) -> &mut P
Mutable borrow of the payload.
Sourcepub fn header(&self) -> &MessageHeader
pub fn header(&self) -> &MessageHeader
Borrow the header.
Sourcepub fn header_mut(&mut self) -> &mut MessageHeader
pub fn header_mut(&mut self) -> &mut MessageHeader
Mutable borrow of the header.
Trait Implementations§
Source§impl<'a, P: Payload> Deref for ConcurrentWriteGuard<'a, P>
impl<'a, P: Payload> Deref for ConcurrentWriteGuard<'a, P>
Auto Trait Implementations§
impl<'a, P> Freeze for ConcurrentWriteGuard<'a, P>
impl<'a, P> RefUnwindSafe for ConcurrentWriteGuard<'a, P>
impl<'a, P> !Send for ConcurrentWriteGuard<'a, P>
impl<'a, P> Sync for ConcurrentWriteGuard<'a, P>where
P: Sync,
impl<'a, P> Unpin for ConcurrentWriteGuard<'a, P>
impl<'a, P> UnsafeUnpin for ConcurrentWriteGuard<'a, P>
impl<'a, P> UnwindSafe for ConcurrentWriteGuard<'a, P>
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