pub struct WeakRefNotify<T>where
T: ObjectType,{ /* private fields */ }
Expand description
A handle to disconnect a weak ref notify closure.
Implementations§
§impl<T> WeakRefNotify<T>where
T: ObjectType,
impl<T> WeakRefNotify<T>where T: ObjectType,
pub fn upgrade(&self) -> Option<T>
pub fn upgrade(&self) -> Option<T>
Try to upgrade this weak reference to a strong reference.
If the stored object was already destroyed then None
is returned.
pub fn disconnect(self)
Auto Trait Implementations§
impl<T> !RefUnwindSafe for WeakRefNotify<T>
impl<T> !Send for WeakRefNotify<T>
impl<T> !Sync for WeakRefNotify<T>
impl<T> Unpin for WeakRefNotify<T>
impl<T> !UnwindSafe for WeakRefNotify<T>
Blanket Implementations§
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
§impl<T> RoundFrom<T> for T
impl<T> RoundFrom<T> for T
§fn round_from(x: T) -> T
fn round_from(x: T) -> T
Performs the conversion.
§impl<T, U> RoundInto<U> for Twhere
U: RoundFrom<T>,
impl<T, U> RoundInto<U> for Twhere U: RoundFrom<T>,
§fn round_into(self) -> U
fn round_into(self) -> U
Performs the conversion.