Struct glib::object::SendWeakRef [−][src]
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]
impl<T: IsA<Object>> SendWeakRef<T>
pub fn new() -> SendWeakRef<T>
[src]
pub fn new() -> SendWeakRef<T>
pub fn into_weak_ref(self) -> WeakRef<T>
[src]
pub fn into_weak_ref(self) -> WeakRef<T>
Methods from Deref<Target = WeakRef<T>>
Trait Implementations
impl<T: IsA<Object>> Deref for SendWeakRef<T>
[src]
impl<T: IsA<Object>> Deref for SendWeakRef<T>
type Target = WeakRef<T>
The resulting type after dereferencing.
fn deref(&self) -> &WeakRef<T>
[src]
fn deref(&self) -> &WeakRef<T>
Dereferences the value.
impl<T: IsA<Object>> Clone for SendWeakRef<T>
[src]
impl<T: IsA<Object>> Clone for SendWeakRef<T>
fn clone(&self) -> Self
[src]
fn clone(&self) -> Self
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<T: IsA<Object>> Default for SendWeakRef<T>
[src]
impl<T: IsA<Object>> Default for SendWeakRef<T>
impl<T: IsA<Object>> From<WeakRef<T>> for SendWeakRef<T>
[src]
impl<T: IsA<Object>> From<WeakRef<T>> for SendWeakRef<T>
fn from(v: WeakRef<T>) -> SendWeakRef<T>
[src]
fn from(v: WeakRef<T>) -> SendWeakRef<T>
Performs the conversion.
impl<T: IsA<Object>> Sync for SendWeakRef<T>
[src]
impl<T: IsA<Object>> Sync for SendWeakRef<T>
impl<T: IsA<Object>> Send for SendWeakRef<T>
[src]
impl<T: IsA<Object>> Send for SendWeakRef<T>