pub struct SingleAsyncRef<T> { /* private fields */ }Implementations§
Source§impl<T> SingleAsyncRef<T>
impl<T> SingleAsyncRef<T>
pub async fn get(&self) -> RwLockReadGuard<'_, T>
pub async fn get_mut(&mut self) -> RwLockWriteGuard<'_, T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for SingleAsyncRef<T>
impl<T> !RefUnwindSafe for SingleAsyncRef<T>
impl<T> Send for SingleAsyncRef<T>
impl<T> Sync for SingleAsyncRef<T>
impl<T> Unpin for SingleAsyncRef<T>
impl<T> !UnwindSafe for SingleAsyncRef<T>
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