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

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

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: IsA<Object>> SendWeakRef<T>
[src]

Methods from Deref<Target = WeakRef<T>>

Trait Implementations

impl<T: IsA<Object>> Deref for SendWeakRef<T>
[src]

The resulting type after dereferencing.

Dereferences the value.

impl<T: IsA<Object>> Clone for SendWeakRef<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: IsA<Object>> Default for SendWeakRef<T>
[src]

Returns the "default value" for a type. Read more

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

Performs the conversion.

impl<T: IsA<Object>> Sync for SendWeakRef<T>
[src]

impl<T: IsA<Object>> Send for SendWeakRef<T>
[src]