Struct windows::Weak[][src]

pub struct Weak<I: Interface>(_, _);

Weak holds a non-owning reference to an object.

Implementations

impl<I: Interface> Weak<I>[src]

pub fn new() -> Self[src]

Creates a new Weak object without any backing object.

pub fn upgrade(&self) -> Option<I>[src]

Attempts to upgrade the weak reference to a strong reference.

Trait Implementations

impl<I: Clone + Interface> Clone for Weak<I>[src]

impl<I: Debug + Interface> Debug for Weak<I>[src]

impl<I: Default + Interface> Default for Weak<I>[src]

impl<I: Eq + Interface> Eq for Weak<I>[src]

impl<I: PartialEq + Interface> PartialEq<Weak<I>> for Weak<I>[src]

impl<I: Interface> StructuralEq for Weak<I>[src]

impl<I: Interface> StructuralPartialEq for Weak<I>[src]

Auto Trait Implementations

impl<I> RefUnwindSafe for Weak<I> where
    I: RefUnwindSafe

impl<I> !Send for Weak<I>

impl<I> !Sync for Weak<I>

impl<I> Unpin for Weak<I> where
    I: Unpin

impl<I> UnwindSafe for Weak<I> where
    I: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.