#[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§
source§impl Clone for OperationError
impl Clone for OperationError
source§fn clone(&self) -> OperationError
fn clone(&self) -> OperationError
Returns a copy 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 OperationError
impl Debug for OperationError
source§impl Display for OperationError
impl Display for OperationError
source§impl Error for OperationError
impl Error for OperationError
source§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<OperationError> for Error
impl From<OperationError> for Error
source§fn from(e: OperationError) -> Self
fn from(e: OperationError) -> Self
Converts to this type from the input type.
source§impl PartialEq<OperationError> for OperationError
impl PartialEq<OperationError> for OperationError
source§fn eq(&self, other: &OperationError) -> bool
fn eq(&self, other: &OperationError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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§
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