[−][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> Clone for SendWeakRef<T>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug + ObjectType> Debug for SendWeakRef<T>
[src]
impl<T: ObjectType> Default for SendWeakRef<T>
[src]
impl<T: ObjectType> Deref 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> Send for SendWeakRef<T>
[src]
impl<T: ObjectType> Sync for SendWeakRef<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for SendWeakRef<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Unpin for SendWeakRef<T>
impl<T> UnwindSafe for SendWeakRef<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,