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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)