Enum flipper0::ffi::ViewModelType
source · #[non_exhaustive]
pub enum ViewModelType {
ViewModelTypeNone,
ViewModelTypeLockFree,
ViewModelTypeLocking,
}
Expand description
View model types
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ViewModelTypeNone
Model is not allocated
ViewModelTypeLockFree
Model consist of atomic types and/or partial update is not critical for rendering. Lock free.
ViewModelTypeLocking
Model access is guarded with mutex. Locking gui thread.
Trait Implementations
sourceimpl Clone for ViewModelType
impl Clone for ViewModelType
sourcefn clone(&self) -> ViewModelType
fn clone(&self) -> ViewModelType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ViewModelType
impl Debug for ViewModelType
sourceimpl Hash for ViewModelType
impl Hash for ViewModelType
sourceimpl PartialEq<ViewModelType> for ViewModelType
impl PartialEq<ViewModelType> for ViewModelType
sourcefn eq(&self, other: &ViewModelType) -> bool
fn eq(&self, other: &ViewModelType) -> bool
impl Eq for ViewModelType
impl StructuralEq for ViewModelType
impl StructuralPartialEq for ViewModelType
Auto Trait Implementations
impl RefUnwindSafe for ViewModelType
impl Send for ViewModelType
impl Sync for ViewModelType
impl Unpin for ViewModelType
impl UnwindSafe for ViewModelType
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