pub enum InterestLevel {
None = 0,
Low = 1,
Medium = 2,
High = 3,
Critical = 4,
}Expand description
Interest level - how much a node cares about a state
Variants§
None = 0
No interest - don’t send updates
Low = 1
Low interest - send major updates only
Medium = 2
Medium interest - send regular updates
High = 3
High interest - send all updates with low latency
Critical = 4
Critical interest - prioritize above all else
Trait Implementations§
Source§impl Clone for InterestLevel
impl Clone for InterestLevel
Source§fn clone(&self) -> InterestLevel
fn clone(&self) -> InterestLevel
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 InterestLevel
impl Debug for InterestLevel
Source§impl Default for InterestLevel
impl Default for InterestLevel
Source§fn default() -> InterestLevel
fn default() -> InterestLevel
Returns the “default value” for a type. Read more
Source§impl Hash for InterestLevel
impl Hash for InterestLevel
Source§impl Ord for InterestLevel
impl Ord for InterestLevel
Source§fn cmp(&self, other: &InterestLevel) -> Ordering
fn cmp(&self, other: &InterestLevel) -> 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 InterestLevel
impl PartialEq for InterestLevel
Source§impl PartialOrd for InterestLevel
impl PartialOrd for InterestLevel
impl Copy for InterestLevel
impl Eq for InterestLevel
impl StructuralPartialEq for InterestLevel
Auto Trait Implementations§
impl Freeze for InterestLevel
impl RefUnwindSafe for InterestLevel
impl Send for InterestLevel
impl Sync for InterestLevel
impl Unpin for InterestLevel
impl UnsafeUnpin for InterestLevel
impl UnwindSafe for InterestLevel
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