Struct glib::value::SendValue [] [src]

#[repr(C)]
pub struct SendValue(_);

A version of Value for storing Send types, that implements Send itself.

See the module documentation for more details.

Methods

impl SendValue
[src]

[src]

Tries to downcast to a TypedValue.

Returns Ok(TypedValue<T>) if the value carries a type corresponding to T and Err(self) otherwise.

Methods from Deref<Target = Value>

[src]

Tries to get a value of type T.

Returns Some if the type is correct and the value is not None.

This function doesn't distinguish between type mismatches and correctly typed None values. Use downcast or is for that.

[src]

Returns true if the type of the value corresponds to T or is a sub-type of T.

[src]

Returns the type of the value.

Trait Implementations

impl From<SendValue> for Value
[src]

[src]

Performs the conversion.

impl Clone for SendValue
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for SendValue
[src]

impl Debug for SendValue
[src]

[src]

Formats the value using the given formatter. Read more

impl Deref for SendValue
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T: ?Sized + SetValueOptional + Send> From<Option<&'a T>> for SendValue
[src]

[src]

Performs the conversion.

impl<'a, T: ?Sized + SetValue + Send> From<&'a T> for SendValue
[src]

[src]

Performs the conversion.

impl<T: Send> From<TypedValue<T>> for SendValue
[src]

[src]

Performs the conversion.

impl FromGlibPtrNone<*const GValue> for SendValue
[src]

[src]

impl FromGlibPtrNone<*mut GValue> for SendValue
[src]

[src]

impl FromGlibPtrFull<*mut GValue> for SendValue
[src]

[src]

impl FromGlibContainerAsVec<*mut GValue, *mut *mut GValue> for SendValue
[src]

Important traits for Vec<u8>
[src]

Important traits for Vec<u8>
[src]

Important traits for Vec<u8>
[src]

impl FromGlibPtrArrayContainerAsVec<*mut GValue, *mut *mut GValue> for SendValue
[src]

Important traits for Vec<u8>
[src]

Important traits for Vec<u8>
[src]

Important traits for Vec<u8>
[src]

impl FromGlibContainerAsVec<*mut GValue, *const *mut GValue> for SendValue
[src]

Important traits for Vec<u8>
[src]

Important traits for Vec<u8>
[src]

Important traits for Vec<u8>
[src]

impl FromGlibPtrArrayContainerAsVec<*mut GValue, *const *mut GValue> for SendValue
[src]

Important traits for Vec<u8>
[src]

Important traits for Vec<u8>
[src]

Important traits for Vec<u8>
[src]

impl<'a> ToGlibPtrMut<'a, *mut GValue> for SendValue
[src]

[src]

Transfer: none. Read more

impl ToSendValue for SendValue
[src]

[src]

Returns a SendValue clone of self.

impl ToValue for SendValue
[src]

[src]

Returns a Value clone of self.

[src]

Returns the type identifer of self. Read more

Auto Trait Implementations

impl !Sync for SendValue