pub struct LifetimeState { /* private fields */ }
Implementations§
Source§impl LifetimeState
impl LifetimeState
pub fn can_read(&self) -> bool
pub fn can_write(&self, id: usize) -> bool
pub fn writer_depth(&self) -> usize
pub fn is_read_accessible(&self) -> bool
pub fn is_write_accessible(&self) -> bool
pub fn is_in_use(&self) -> bool
pub fn is_locked(&self) -> bool
pub fn try_lock(&self) -> Option<LifetimeStateAccess<'_>>
pub fn lock(&self) -> LifetimeStateAccess<'_>
Sourcepub unsafe fn lock_unchecked(&self) -> LifetimeStateAccess<'_>
pub unsafe fn lock_unchecked(&self) -> LifetimeStateAccess<'_>
§Safety
pub fn downgrade(&self) -> LifetimeWeakState
Trait Implementations§
Source§impl Clone for LifetimeState
impl Clone for LifetimeState
Source§fn clone(&self) -> LifetimeState
fn clone(&self) -> LifetimeState
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for LifetimeState
impl Default for LifetimeState
Source§fn default() -> LifetimeState
fn default() -> LifetimeState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LifetimeState
impl RefUnwindSafe for LifetimeState
impl Send for LifetimeState
impl Sync for LifetimeState
impl Unpin for LifetimeState
impl UnwindSafe for LifetimeState
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