pub enum UpdateMode {
Static,
Random,
Increment,
}Expand description
How register values update between reads.
Variants§
Static
Values are static — only change via writes.
Random
Values are randomized within [min, max] on each read.
Increment
Values increment by 1 on each read, wrapping at max.
Trait Implementations§
Source§impl Clone for UpdateMode
impl Clone for UpdateMode
Source§fn clone(&self) -> UpdateMode
fn clone(&self) -> UpdateMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UpdateMode
impl Debug for UpdateMode
Source§impl Default for UpdateMode
impl Default for UpdateMode
Source§fn default() -> UpdateMode
fn default() -> UpdateMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateMode
impl<'de> Deserialize<'de> for UpdateMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for UpdateMode
impl RefUnwindSafe for UpdateMode
impl Send for UpdateMode
impl Sync for UpdateMode
impl Unpin for UpdateMode
impl UnsafeUnpin for UpdateMode
impl UnwindSafe for UpdateMode
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