pub struct PayloadSliceAccess<'a>(/* private fields */);
Expand description
A wrapper over mutable reference to PayloadSliceLock
which can give to the caller the slice of the held payload.
For more information read PayloadSliceLock
docs.
Implementations§
Source§impl<'a> PayloadSliceAccess<'a>
impl<'a> PayloadSliceAccess<'a>
Sourcepub fn into_lock(self) -> &'a mut PayloadSliceLock
pub fn into_lock(self) -> &'a mut PayloadSliceLock
Converts the wrapper into PayloadSliceLock
.
Auto Trait Implementations§
impl<'a> Freeze for PayloadSliceAccess<'a>
impl<'a> RefUnwindSafe for PayloadSliceAccess<'a>
impl<'a> Send for PayloadSliceAccess<'a>
impl<'a> Sync for PayloadSliceAccess<'a>
impl<'a> Unpin for PayloadSliceAccess<'a>
impl<'a> !UnwindSafe for PayloadSliceAccess<'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