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.


impl<T: IsA<Object>> SendWeakRef<T>

Methods from Deref<Target = WeakRef<T>>

Trait Implementations

impl<T: IsA<Object>> Deref for SendWeakRef<T>

The resulting type after dereferencing.

Dereferences the value.

impl<T: IsA<Object>> Clone for SendWeakRef<T>

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: IsA<Object>> Default for SendWeakRef<T>

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

impl<T: IsA<Object>> From<WeakRef<T>> for SendWeakRef<T>

Performs the conversion.

impl<T: IsA<Object>> Sync for SendWeakRef<T>

impl<T: IsA<Object>> Send for SendWeakRef<T>