pub struct ThreadConditionsHandle {
inner: Weak<NotifyMap>,
}
Expand description
A weak handle to a ThreadConditions
instance, which does not prolong its
lifetime.
Internally holds a std::sync::Weak
pointer.
Fields§
§inner: Weak<NotifyMap>
Implementations§
source§impl ThreadConditionsHandle
impl ThreadConditionsHandle
sourcepub fn upgrade(&self) -> Option<ThreadConditions>
pub fn upgrade(&self) -> Option<ThreadConditions>
Attempt to upgrade this handle to a strong reference.
Returns None
if the original ThreadConditions
instance has been dropped.
Auto Trait Implementations§
impl Freeze for ThreadConditionsHandle
impl !RefUnwindSafe for ThreadConditionsHandle
impl Send for ThreadConditionsHandle
impl Sync for ThreadConditionsHandle
impl Unpin for ThreadConditionsHandle
impl !UnwindSafe for ThreadConditionsHandle
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.