#[non_exhaustive]
pub enum OperationError {
InvalidComparison,
}
Expand description
Errors than occur when operating on lock times.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidComparison
Cannot compare different lock time units (height vs time).
Trait Implementations
sourceimpl Clone for OperationError
impl Clone for OperationError
sourcefn clone(&self) -> OperationError
fn clone(&self) -> OperationError
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for OperationError
impl Debug for OperationError
sourceimpl Display for OperationError
impl Display for OperationError
sourceimpl Error for OperationError
Available on crate feature std
only.
impl Error for OperationError
Available on crate feature
std
only.1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<OperationError> for Error
impl From<OperationError> for Error
sourcefn from(e: OperationError) -> Self
fn from(e: OperationError) -> Self
Converts to this type from the input type.
sourceimpl Hash for OperationError
impl Hash for OperationError
sourceimpl Ord for OperationError
impl Ord for OperationError
sourcefn cmp(&self, other: &OperationError) -> Ordering
fn cmp(&self, other: &OperationError) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Selfwhere
Self: Sized,
const fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Selfwhere
Self: Sized,
const fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<OperationError> for OperationError
impl PartialEq<OperationError> for OperationError
sourcefn eq(&self, other: &OperationError) -> bool
fn eq(&self, other: &OperationError) -> bool
sourceimpl PartialOrd<OperationError> for OperationError
impl PartialOrd<OperationError> for OperationError
sourcefn partial_cmp(&self, other: &OperationError) -> Option<Ordering>
fn partial_cmp(&self, other: &OperationError) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for OperationError
impl Eq for OperationError
impl StructuralEq for OperationError
impl StructuralPartialEq for OperationError
Auto Trait Implementations
impl RefUnwindSafe for OperationError
impl Send for OperationError
impl Sync for OperationError
impl Unpin for OperationError
impl UnwindSafe for OperationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more