Struct flipperzero_sys::ValueMutex
source · [−]#[repr(C)]pub struct ValueMutex {
pub value: *mut c_void,
pub size: usize,
pub mutex: *mut FuriMutex,
}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 FuriMutexTrait Implementations
sourceimpl Clone for ValueMutex
impl Clone for ValueMutex
sourcefn clone(&self) -> ValueMutex
fn clone(&self) -> ValueMutex
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for ValueMutex
impl Debug for ValueMutex
impl Copy for ValueMutex
Auto Trait Implementations
impl RefUnwindSafe for ValueMutex
impl !Send for ValueMutex
impl !Sync for ValueMutex
impl Unpin for ValueMutex
impl UnwindSafe for ValueMutex
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more