pub struct LifetimeRefMut(/* private fields */);
Implementations§
Source§impl LifetimeRefMut
impl LifetimeRefMut
pub fn state(&self) -> &LifetimeWeakState
pub fn tag(&self) -> usize
pub fn depth(&self) -> usize
pub fn exists(&self) -> bool
pub fn can_read(&self) -> bool
pub fn can_write(&self) -> bool
pub fn is_read_accessible(&self) -> bool
pub fn is_write_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 borrow_mut(&self) -> Option<LifetimeRefMut>
pub async fn borrow_mut_async(&self) -> LifetimeRefMut
pub fn read<'a, T: ?Sized>( &'a self, data: &'a T, ) -> Option<ValueReadAccess<'a, T>>
pub async fn read_async<'a, T: ?Sized>( &'a self, data: &'a T, ) -> ValueReadAccess<'a, T>
Sourcepub unsafe fn read_ptr<T: ?Sized>(
&self,
data: *const T,
) -> Option<ValueReadAccess<'_, T>>
pub unsafe fn read_ptr<T: ?Sized>( &self, data: *const T, ) -> Option<ValueReadAccess<'_, T>>
§Safety
Sourcepub async unsafe fn read_ptr_async<'a, T: ?Sized + 'a>(
&'a self,
data: *const T,
) -> ValueReadAccess<'a, T>
pub async unsafe fn read_ptr_async<'a, T: ?Sized + 'a>( &'a self, data: *const T, ) -> ValueReadAccess<'a, T>
§Safety
pub fn write<'a, T: ?Sized>( &'a self, data: &'a mut T, ) -> Option<ValueWriteAccess<'a, T>>
pub async fn write_async<'a, T: ?Sized>( &'a self, data: &'a mut T, ) -> ValueWriteAccess<'a, T>
Sourcepub unsafe fn write_ptr<T: ?Sized>(
&self,
data: *mut T,
) -> Option<ValueWriteAccess<'_, T>>
pub unsafe fn write_ptr<T: ?Sized>( &self, data: *mut T, ) -> Option<ValueWriteAccess<'_, T>>
§Safety
Sourcepub async unsafe fn write_ptr_async<'a, T: ?Sized + 'a>(
&'a self,
data: *mut T,
) -> ValueWriteAccess<'a, T>
pub async unsafe fn write_ptr_async<'a, T: ?Sized + 'a>( &'a self, data: *mut T, ) -> ValueWriteAccess<'a, T>
§Safety
pub fn read_lock(&self) -> Option<ReadLock>
pub async fn read_lock_async(&self) -> ReadLock
pub fn write_lock(&self) -> Option<WriteLock>
pub async fn write_lock_async(&self) -> WriteLock
pub fn consume<T: ?Sized>( self, data: &mut T, ) -> Result<ValueWriteAccess<'_, T>, Self>
pub async fn wait_for_read_access(&self)
pub async fn wait_for_write_access(&self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LifetimeRefMut
impl RefUnwindSafe for LifetimeRefMut
impl Send for LifetimeRefMut
impl Sync for LifetimeRefMut
impl Unpin for LifetimeRefMut
impl UnwindSafe for LifetimeRefMut
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