pub struct LifetimeStateAccess<'a> { /* private fields */ }
Implementations§
Source§impl<'a> LifetimeStateAccess<'a>
impl<'a> LifetimeStateAccess<'a>
pub fn state(&self) -> &LifetimeState
pub fn unlock(&mut self, value: bool)
pub fn acquire_reader(&mut self)
pub fn release_reader(&mut self)
pub fn acquire_writer(&mut self) -> usize
pub fn release_writer(&mut self, id: usize)
pub fn acquire_read_access(&mut self)
pub fn release_read_access(&mut self)
pub fn acquire_write_access(&mut self)
pub fn release_write_access(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for LifetimeStateAccess<'a>
impl<'a> RefUnwindSafe for LifetimeStateAccess<'a>
impl<'a> Send for LifetimeStateAccess<'a>
impl<'a> Sync for LifetimeStateAccess<'a>
impl<'a> Unpin for LifetimeStateAccess<'a>
impl<'a> UnwindSafe for LifetimeStateAccess<'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