Struct flipper0::ffi::ValueMutex

source ·
pub struct ValueMutex {
    pub value: *mut c_void,
    pub size: usize,
    pub mutex: *mut c_void,
}
Expand description

== ValueMutex ==

The most simple concept is ValueMutex. It is wrapper around mutex and value pointer. You can take and give mutex to work with value and read and write value.

Fields

value: *mut c_voidsize: usizemutex: *mut c_void

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.