Struct medea_reactive::subscribers_store::progressable::guarded::Guarded
source · pub struct Guarded<T> { /* private fields */ }
Expand description
Wrapper around a data T
decrementing its underlying counter on Drop
.
Implementations§
source§impl<T> Guarded<T>
impl<T> Guarded<T>
sourcepub fn into_parts(self) -> (T, Guard)
pub fn into_parts(self) -> (T, Guard)
sourcepub fn into_inner(self) -> T
pub fn into_inner(self) -> T
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for Guarded<T>
impl<T> !Send for Guarded<T>
impl<T> !Sync for Guarded<T>
impl<T> Unpin for Guarded<T>where T: Unpin,
impl<T> !UnwindSafe for Guarded<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