#[non_exhaustive]#[repr(u8)]pub enum WriteState {
Create = 0,
Init = 1,
StartMeas = 2,
StopMeas = 3,
Finalize = 4,
}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.
Create = 0
< Only at first measurement
Init = 1
< Start work thread and start collecting samples
StartMeas = 2
< Start saving samples to file
StopMeas = 3
< Stop saving samples. OK to
Finalize = 4
< OK to add new DG and CG blocks
Trait Implementations§
Source§impl Clone for WriteState
impl Clone for WriteState
Source§fn clone(&self) -> WriteState
fn clone(&self) -> WriteState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WriteState
impl Debug for WriteState
Source§impl Hash for WriteState
impl Hash for WriteState
Source§impl Ord for WriteState
impl Ord for WriteState
Source§fn cmp(&self, other: &WriteState) -> Ordering
fn cmp(&self, other: &WriteState) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WriteState
impl PartialEq for WriteState
Source§impl PartialOrd for WriteState
impl PartialOrd for WriteState
impl Copy for WriteState
impl Eq for WriteState
impl StructuralPartialEq for WriteState
Auto Trait Implementations§
impl Freeze for WriteState
impl RefUnwindSafe for WriteState
impl Send for WriteState
impl Sync for WriteState
impl Unpin for WriteState
impl UnsafeUnpin for WriteState
impl UnwindSafe for WriteState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more