pub struct DisabledLockTimeError(/* private fields */);
Expand description
Error returned when a sequence number is parsed as a lock time, but its “disable” flag is set.
Implementations§
§impl DisabledLockTimeError
impl DisabledLockTimeError
pub fn disabled_locktime_value(&self) -> u32
pub fn disabled_locktime_value(&self) -> u32
Accessor for the u32
whose “disable” flag was set, preventing
it from being parsed as a relative locktime.
Trait Implementations§
§impl Clone for DisabledLockTimeError
impl Clone for DisabledLockTimeError
§fn clone(&self) -> DisabledLockTimeError
fn clone(&self) -> DisabledLockTimeError
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 more§impl Debug for DisabledLockTimeError
impl Debug for DisabledLockTimeError
§impl Display for DisabledLockTimeError
impl Display for DisabledLockTimeError
§impl Error for DisabledLockTimeError
impl Error for DisabledLockTimeError
1.30.0 · 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()
§impl PartialEq for DisabledLockTimeError
impl PartialEq for DisabledLockTimeError
§fn eq(&self, other: &DisabledLockTimeError) -> bool
fn eq(&self, other: &DisabledLockTimeError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DisabledLockTimeError
impl StructuralPartialEq for DisabledLockTimeError
Auto Trait Implementations§
impl Freeze for DisabledLockTimeError
impl RefUnwindSafe for DisabledLockTimeError
impl Send for DisabledLockTimeError
impl Sync for DisabledLockTimeError
impl Unpin for DisabledLockTimeError
impl UnwindSafe for DisabledLockTimeError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more