pub enum TimeLockInterval {
Height(u16),
Time(u16),
}
Expand description
Time lock interval describing both relative (OP_CHECKSEQUENCEVERIFY) and absolute (OP_CHECKTIMELOCKVERIFY) timelocks.
Variants§
Height(u16)
Describes number of blocks for the timelock
Time(u16)
Describes number of 512-second intervals for the timelock
Trait Implementations§
Source§impl Clone for TimeLockInterval
impl Clone for TimeLockInterval
Source§fn clone(&self) -> TimeLockInterval
fn clone(&self) -> TimeLockInterval
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 TimeLockInterval
impl Debug for TimeLockInterval
Source§impl Default for TimeLockInterval
impl Default for TimeLockInterval
Source§fn default() -> TimeLockInterval
fn default() -> TimeLockInterval
Returns the “default value” for a type. Read more
Source§impl Display for TimeLockInterval
impl Display for TimeLockInterval
Source§impl Hash for TimeLockInterval
impl Hash for TimeLockInterval
Source§impl Ord for TimeLockInterval
impl Ord for TimeLockInterval
Source§fn cmp(&self, other: &TimeLockInterval) -> Ordering
fn cmp(&self, other: &TimeLockInterval) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for TimeLockInterval
impl PartialEq for TimeLockInterval
Source§impl PartialOrd for TimeLockInterval
impl PartialOrd for TimeLockInterval
Source§impl StrictDecode for TimeLockInterval
impl StrictDecode for TimeLockInterval
fn strict_decode( reader: &mut impl TypedRead, ) -> Result<TimeLockInterval, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictEncode for TimeLockInterval
impl StrictEncode for TimeLockInterval
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictSum for TimeLockInterval
impl StrictSum for TimeLockInterval
const ALL_VARIANTS: &'static [(u8, &'static str)]
fn variant_name(&self) -> &'static str
fn strict_check_variants()
fn variant_name_by_tag(tag: u8) -> Option<VariantName>
fn variant_ord(&self) -> u8
Source§impl StrictType for TimeLockInterval
impl StrictType for TimeLockInterval
const STRICT_LIB_NAME: &'static str = LIB_NAME_BITCOIN
fn strict_name() -> Option<TypeName>
Source§impl StrictUnion for TimeLockInterval
impl StrictUnion for TimeLockInterval
fn strict_type_info() -> TypeInfo<Self>
impl Copy for TimeLockInterval
impl Eq for TimeLockInterval
impl StructuralPartialEq for TimeLockInterval
Auto Trait Implementations§
impl Freeze for TimeLockInterval
impl RefUnwindSafe for TimeLockInterval
impl Send for TimeLockInterval
impl Sync for TimeLockInterval
impl Unpin for TimeLockInterval
impl UnwindSafe for TimeLockInterval
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.