pub struct GlobalMutexContainer<T> { /* private fields */ }Available on crate feature
stdsync only.Implementations§
Source§impl<T> GlobalMutexContainer<T>
impl<T> GlobalMutexContainer<T>
pub const fn new() -> GlobalMutexContainer<T>
pub fn set(&self, obj: T)
pub fn is_empty(&self) -> bool
pub fn manual_drop(&self)
pub fn get(&self) -> MutexGuard<'_, GOption<T>>
pub fn get_mut(&self) -> MutexGuard<'_, GOption<T>>
Trait Implementations§
Auto Trait Implementations§
impl<T> !Freeze for GlobalMutexContainer<T>
impl<T> RefUnwindSafe for GlobalMutexContainer<T>
impl<T> Send for GlobalMutexContainer<T>where
T: Send,
impl<T> Sync for GlobalMutexContainer<T>where
T: Send,
impl<T> Unpin for GlobalMutexContainer<T>where
T: Unpin,
impl<T> UnwindSafe for GlobalMutexContainer<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