Struct glib::object::WeakRefNotify
source · pub struct WeakRefNotify<T: ObjectType> { /* private fields */ }
Expand description
A handle to disconnect a weak ref notify closure.
Implementations§
source§impl<T: ObjectType> WeakRefNotify<T>
impl<T: ObjectType> WeakRefNotify<T>
sourcepub 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.