Type Alias sapio_base::timelocks::RelTime

source ·
pub type RelTime = LockTime<Rel, MTP>;
Expand description

LockTime for Relative MTP

Aliased Type§

struct RelTime(/* private fields */);

Trait Implementations§

source§

impl From<u16> for RelTime

source§

fn from(u: u16) -> Self

Converts to this type from the input type.
source§

impl TryFrom<Duration> for RelTime

§

type Error = LockTimeError

The type returned in the event of a conversion error.
source§

fn try_from(u: Duration) -> Result<Self, Self::Error>

Performs the conversion.