[−][src]Struct glib::object::SendWeakRef
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>>
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(&self) -> Self
[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]
fn from(v: WeakRef<T>) -> SendWeakRef<T>
[src]
impl<T: ObjectType> Deref for SendWeakRef<T>
[src]
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,