pub enum SnapshotUrgency {
None,
Low,
High,
}
Expand description
Urgency of a snapshot for a client; used to create the X-Snapshot-Request
header.
Variants§
None
Don’t need a snapshot right now.
Low
A snapshot would be good, but can wait for other replicas to provide it.
High
A snapshot is needed right now.
Trait Implementations§
Source§impl Clone for SnapshotUrgency
impl Clone for SnapshotUrgency
Source§fn clone(&self) -> SnapshotUrgency
fn clone(&self) -> SnapshotUrgency
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 SnapshotUrgency
impl Debug for SnapshotUrgency
Source§impl Ord for SnapshotUrgency
impl Ord for SnapshotUrgency
Source§fn cmp(&self, other: &SnapshotUrgency) -> Ordering
fn cmp(&self, other: &SnapshotUrgency) -> 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 SnapshotUrgency
impl PartialEq for SnapshotUrgency
Source§impl PartialOrd for SnapshotUrgency
impl PartialOrd for SnapshotUrgency
impl Copy for SnapshotUrgency
impl Eq for SnapshotUrgency
impl StructuralPartialEq for SnapshotUrgency
Auto Trait Implementations§
impl Freeze for SnapshotUrgency
impl RefUnwindSafe for SnapshotUrgency
impl Send for SnapshotUrgency
impl Sync for SnapshotUrgency
impl Unpin for SnapshotUrgency
impl UnwindSafe for SnapshotUrgency
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