[][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.

Methods

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> Sync for SendWeakRef<T>[src]

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

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

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

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

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

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

type Target = WeakRef<T>

The resulting type after dereferencing.

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.