Struct medea_reactive::Guarded [−][src]
Wrapper around a data T
decrementing its underlying counter on Drop
.
Implementations
impl<T> Guarded<T>
[src]
#[must_use]pub fn into_parts(self) -> (T, Guard)
[src]
#[must_use]pub fn into_inner(self) -> T
[src]
impl<T> Guarded<Option<T>>
[src]
Trait Implementations
impl<T> AsRef<T> for Guarded<T>
[src]
impl<T: Debug> Debug for Guarded<T>
[src]
impl<T> Deref for Guarded<T>
[src]
impl<T> SubscribersStore<T, Guarded<T>> for SubStore<T> where
T: Clone + 'static,
[src]
T: Clone + 'static,
Auto Trait Implementations
impl<T> !RefUnwindSafe for Guarded<T>
[src]
impl<T> !Send for Guarded<T>
[src]
impl<T> !Sync for Guarded<T>
[src]
impl<T> Unpin for Guarded<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> !UnwindSafe for Guarded<T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,