pub struct AttrChangeEventConfig {
pub rel_change: Option<f64>,
pub abs_change: Option<f64>,
}Expand description
The criteria of the change event: how much the value has to move for the server to send one, absolutely or relatively, either of which may be left out.
Fields§
§rel_change: Option<f64>The relative change, as a percentage of the previous value.
abs_change: Option<f64>The absolute change, in the unit of the attribute.
Implementations§
Trait Implementations§
Source§impl Clone for AttrChangeEventConfig
impl Clone for AttrChangeEventConfig
impl Copy for AttrChangeEventConfig
Source§impl Debug for AttrChangeEventConfig
impl Debug for AttrChangeEventConfig
Source§impl Default for AttrChangeEventConfig
impl Default for AttrChangeEventConfig
Source§impl PartialEq for AttrChangeEventConfig
impl PartialEq for AttrChangeEventConfig
impl StructuralPartialEq for AttrChangeEventConfig
Auto Trait Implementations§
impl Freeze for AttrChangeEventConfig
impl RefUnwindSafe for AttrChangeEventConfig
impl Send for AttrChangeEventConfig
impl Sync for AttrChangeEventConfig
impl Unpin for AttrChangeEventConfig
impl UnsafeUnpin for AttrChangeEventConfig
impl UnwindSafe for AttrChangeEventConfig
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