pub enum AttrMemorized {
RestoreSetPoint,
RestoreAndWrite,
}Expand description
What a memorized attribute does, when its device is initialized, with the value it remembers.
Both modes store the value of every write in the database, they only differ in what the next initialization of the device does with the value it finds there.
Variants§
RestoreSetPoint
The remembered value is restored as the write value of the attribute and nothing else: a client reading the attribute back finds the setpoint it left, but the write function is never called, so the device does not act on its hardware only because it was restarted.
RestoreAndWrite
The remembered value is written again, through the write function of the attribute, which puts the device back in the state it was left in.
Trait Implementations§
Source§impl Clone for AttrMemorized
impl Clone for AttrMemorized
impl Copy for AttrMemorized
Source§impl Debug for AttrMemorized
impl Debug for AttrMemorized
impl Eq for AttrMemorized
Source§impl Hash for AttrMemorized
impl Hash for AttrMemorized
Source§impl PartialEq for AttrMemorized
impl PartialEq for AttrMemorized
impl StructuralPartialEq for AttrMemorized
Auto Trait Implementations§
impl Freeze for AttrMemorized
impl RefUnwindSafe for AttrMemorized
impl Send for AttrMemorized
impl Sync for AttrMemorized
impl Unpin for AttrMemorized
impl UnsafeUnpin for AttrMemorized
impl UnwindSafe for AttrMemorized
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