pub struct LifetimeRef(/* private fields */);
Implementations§
Source§impl LifetimeRef
impl LifetimeRef
pub fn state(&self) -> &LifetimeWeakState
pub fn tag(&self) -> usize
pub fn exists(&self) -> bool
pub fn can_read(&self) -> bool
pub fn is_read_accessible(&self) -> bool
pub fn is_in_use(&self) -> bool
pub fn is_owned_by(&self, other: &Lifetime) -> bool
pub fn borrow(&self) -> Option<LifetimeRef>
pub async fn borrow_async(&self) -> LifetimeRef
pub fn read<'a, T>(&'a self, data: &'a T) -> Option<ValueReadAccess<'a, T>>where
T: ?Sized,
pub async fn read_async<'a, T>(&'a self, data: &'a T) -> ValueReadAccess<'a, T>where
T: ?Sized,
Sourcepub unsafe fn read_ptr<T>(
&self,
data: *const T,
) -> Option<ValueReadAccess<'_, T>>where
T: ?Sized,
pub unsafe fn read_ptr<T>(
&self,
data: *const T,
) -> Option<ValueReadAccess<'_, T>>where
T: ?Sized,
§Safety
Sourcepub async unsafe fn read_ptr_async<'a, T>(
&'a self,
data: *const T,
) -> ValueReadAccess<'a, T>where
T: 'a + ?Sized,
pub async unsafe fn read_ptr_async<'a, T>(
&'a self,
data: *const T,
) -> ValueReadAccess<'a, T>where
T: 'a + ?Sized,
§Safety
pub fn read_lock(&self) -> Option<ReadLock>
pub async fn read_lock_async(&self) -> ReadLock
pub fn consume<T>(self, data: &T) -> Result<ValueReadAccess<'_, T>, LifetimeRef>where
T: ?Sized,
pub async fn wait_for_read_access(&self)
pub async fn wait_for_write_access(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LifetimeRef
impl RefUnwindSafe for LifetimeRef
impl Send for LifetimeRef
impl Sync for LifetimeRef
impl Unpin for LifetimeRef
impl UnwindSafe for LifetimeRef
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