pub enum LockTimeError {
DurationTooLong(Duration),
TimeTooFarInPast(Duration),
HeightTooHigh(u32),
UnknownSeqType(u32),
}Expand description
Error in Creating a LockTime
Variants§
DurationTooLong(Duration)
Duration escapes bound of valid timestamps
TimeTooFarInPast(Duration)
Time was too far in the past, would be interpreted as non-timestamp
HeightTooHigh(u32)
height is too high (beyond 500_000_000), interpreted as timestamp
UnknownSeqType(u32)
sequence type is unknown
Trait Implementations§
Source§impl Debug for LockTimeError
impl Debug for LockTimeError
Source§impl Display for LockTimeError
impl Display for LockTimeError
Source§impl Error for LockTimeError
impl Error for LockTimeError
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()
Auto Trait Implementations§
impl Freeze for LockTimeError
impl RefUnwindSafe for LockTimeError
impl Send for LockTimeError
impl Sync for LockTimeError
impl Unpin for LockTimeError
impl UnwindSafe for LockTimeError
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