Struct a_mutex::local::LocalGuard
source · [−]pub struct LocalGuard<'a, T> { /* private fields */ }Trait Implementations
sourceimpl<'a, T> Guard<T> for LocalGuard<'a, T>where
T: Send + Sync + 'static,
impl<'a, T> Guard<T> for LocalGuard<'a, T>where
T: Send + Sync + 'static,
type D = LocalDerefCtor<T>
fn store<'life0, 'async_trait>(
&'life0 mut self,
data: T
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn load<'s, 'async_trait>(
&'s self
) -> Pin<Box<dyn Future<Output = Result<&'s Option<T>>> + Send + 'async_trait>>where
's: 'async_trait,
Self: 'async_trait,
fn clear<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for LocalGuard<'a, T>
impl<'a, T> Send for LocalGuard<'a, T>where
T: Send,
impl<'a, T> Sync for LocalGuard<'a, T>where
T: Send + Sync,
impl<'a, T> Unpin for LocalGuard<'a, T>
impl<'a, T> !UnwindSafe for LocalGuard<'a, T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more