Type Definition RelTime
sapio_base::timelocks
type RelTime = LockTime<Rel, MTP>;
impl From<u16> for RelTime
fn from(u: u16) -> Self
Performs the conversion.
impl TryFrom<Duration> for RelTime
type Error = LockTimeError
The type returned in the event of a conversion error.
fn try_from(u: Duration) -> Result<Self, Self::Error>