[][src]Struct glib::object::SendWeakRef

pub struct SendWeakRef<T: ObjectType>(_, _);

A weak reference to the object it was created for that can be sent to different threads even for object types that don't implement Send.

Trying to upgrade the weak reference from another thread than the one where it was created on will panic but dropping or cloning can be done safely from any thread.

Implementations

impl<T: ObjectType> SendWeakRef<T>[src]

pub fn new() -> SendWeakRef<T>[src]

pub fn into_weak_ref(self) -> WeakRef<T>[src]

Methods from Deref<Target = WeakRef<T>>

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

Trait Implementations

impl<T: ObjectType> Clone for SendWeakRef<T>[src]

impl<T: Debug + ObjectType> Debug for SendWeakRef<T>[src]

impl<T: ObjectType> Default for SendWeakRef<T>[src]

impl<T: ObjectType> Deref for SendWeakRef<T>[src]

type Target = WeakRef<T>

The resulting type after dereferencing.

impl<T: ObjectType> From<WeakRef<T>> for SendWeakRef<T>[src]

impl<T: ObjectType> Send for SendWeakRef<T>[src]

impl<T: ObjectType> Sync for SendWeakRef<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for SendWeakRef<T> where
    T: RefUnwindSafe

impl<T> Unpin for SendWeakRef<T>

impl<T> UnwindSafe for SendWeakRef<T> where
    T: RefUnwindSafe

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.