pub struct WeakSubscriptionContext<T, E, OR, M, D: Disposable = ()> { /* private fields */ }Expand description
A non-owning reference to a SubscriptionContext.
Implementations§
Source§impl<T, E, OR, M, D: Disposable> WeakSubscriptionContext<T, E, OR, M, D>
impl<T, E, OR, M, D: Disposable> WeakSubscriptionContext<T, E, OR, M, D>
Sourcepub fn upgrade(&self) -> Option<SubscriptionContext<T, E, OR, M, D>>
pub fn upgrade(&self) -> Option<SubscriptionContext<T, E, OR, M, D>>
Returns the context, or None once every strong reference to it is gone.
Trait Implementations§
Source§impl<T, E, OR, M, D: Disposable> Clone for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: Clone,
impl<T, E, OR, M, D: Disposable> Clone for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: Clone,
Source§impl<T, E, OR, M, D: Disposable> Debug for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: Debug,
impl<T, E, OR, M, D: Disposable> Debug for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: Debug,
Auto Trait Implementations§
impl<T, E, OR, M, D> Freeze for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: Freeze,
impl<T, E, OR, M, D> RefUnwindSafe for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: RefUnwindSafe,
impl<T, E, OR, M, D> Send for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: Send,
impl<T, E, OR, M, D> Sync for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: Sync,
impl<T, E, OR, M, D> Unpin for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: Unpin,
impl<T, E, OR, M, D> UnsafeUnpin for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: UnsafeUnpin,
impl<T, E, OR, M, D> UnwindSafe for WeakSubscriptionContext<T, E, OR, M, D>where
WeakSerializedDelivery<T, E, OR, ContextResources<M, D>>: 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