pub struct GuardObject<T> { /* private fields */ }
Implementations§
Source§impl<T> GuardObject<T>
impl<T> GuardObject<T>
pub fn new(locker: Locker, obj: T) -> Self
pub fn release_locker(self) -> T
Trait Implementations§
Source§impl<T> DerefMut for GuardObject<T>
impl<T> DerefMut for GuardObject<T>
Auto Trait Implementations§
impl<T> Freeze for GuardObject<T>where
T: Freeze,
impl<T> RefUnwindSafe for GuardObject<T>where
T: RefUnwindSafe,
impl<T> Send for GuardObject<T>where
T: Send,
impl<T> Sync for GuardObject<T>where
T: Sync,
impl<T> Unpin for GuardObject<T>where
T: Unpin,
impl<T> UnwindSafe for GuardObject<T>where
T: UnwindSafe,
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