Struct rawtx_rs::timelock::LocktimeInfo[][src]

pub struct LocktimeInfo {
    pub locktime: u32,
    // some fields omitted
}

Fields

locktime: u32

Implementations

impl LocktimeInfo[src]

pub fn new(tx: &Transaction) -> LocktimeInfo[src]

pub fn is_enforced(&self) -> bool[src]

Returns true if the locktime is enforced. The locktime of a Bitcoin transaction is only enforced when at least one of the inputs sequences is lower than 0xFFFF_FFFF.

pub fn is_height(&self) -> bool[src]

Is true when the locktime represents a block height. The locktime value must larger than zero and smaller than 500_000_000.

pub fn is_timestamp(&self) -> bool[src]

Is true when the locktime represents a timestamp. The locktime value must be larger than or equal to 500_000_000.

Trait Implementations

impl Debug for LocktimeInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.