Enum SnapshotQueryError
pub enum SnapshotQueryError {
InvalidFraction,
TickOverflow,
}Expand description
Invalid input to SnapshotRing::bracket_checked.
Variants§
InvalidFraction
The fractional tick is nonfinite or outside the inclusive range [0, 1].
TickOverflow
A fraction of exactly 1 would advance u64::MAX to an unrepresentable tick.
Trait Implementations§
§impl Clone for SnapshotQueryError
impl Clone for SnapshotQueryError
§fn clone(&self) -> SnapshotQueryError
fn clone(&self) -> SnapshotQueryError
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 more§impl Debug for SnapshotQueryError
impl Debug for SnapshotQueryError
§impl Display for SnapshotQueryError
impl Display for SnapshotQueryError
§impl Error for SnapshotQueryError
impl Error for SnapshotQueryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl PartialEq for SnapshotQueryError
impl PartialEq for SnapshotQueryError
impl Copy for SnapshotQueryError
impl Eq for SnapshotQueryError
impl StructuralPartialEq for SnapshotQueryError
Auto Trait Implementations§
impl Freeze for SnapshotQueryError
impl RefUnwindSafe for SnapshotQueryError
impl Send for SnapshotQueryError
impl Sync for SnapshotQueryError
impl Unpin for SnapshotQueryError
impl UnwindSafe for SnapshotQueryError
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