pub struct ParkableRefMut<'a, R, T> { /* private fields */ }Expand description
Holder of one mutable reference.
It can park itself and its holder of type T via ParkableRefMut::parker and Parker::park.
It can unpark itself via ParkableRefMut::unpark which returns the previously parked holder of type T if
any, None if everything has been unparked.
Implementations§
Source§impl<'a, R, T> ParkableRefMut<'a, R, T>
impl<'a, R, T> ParkableRefMut<'a, R, T>
Trait Implementations§
Source§impl<'a, R, T> Deref for ParkableRefMut<'a, R, T>
impl<'a, R, T> Deref for ParkableRefMut<'a, R, T>
Auto Trait Implementations§
impl<'a, R, T> Freeze for ParkableRefMut<'a, R, T>
impl<'a, R, T> RefUnwindSafe for ParkableRefMut<'a, R, T>where
R: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, R, T> !Send for ParkableRefMut<'a, R, T>
impl<'a, R, T> !Sync for ParkableRefMut<'a, R, T>
impl<'a, R, T> Unpin for ParkableRefMut<'a, R, T>
impl<'a, R, T> UnsafeUnpin for ParkableRefMut<'a, R, T>
impl<'a, R, T> UnwindSafe for ParkableRefMut<'a, R, T>where
R: RefUnwindSafe,
T: 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