pub struct Since(/* private fields */);
Expand description
Transaction input’s since field
Implementations§
Source§impl Since
impl Since
pub fn from_block_number(number: u64, absolute: bool) -> Option<Self>
pub fn from_timestamp(timestamp: u64, absolute: bool) -> Option<Self>
pub fn from_epoch(epoch: EpochNumberWithFraction, absolute: bool) -> Self
pub fn new(v: u64) -> Self
pub fn as_u64(self) -> u64
pub fn is_absolute(self) -> bool
pub fn is_relative(self) -> bool
pub fn flags_is_valid(self) -> bool
pub fn flags(self) -> u64
pub fn extract_lock_value(self) -> Option<LockValue>
Sourcepub fn to_absolute_value(self, base_block: Header) -> Option<Self>
Available on crate feature ckb-types
only.
pub fn to_absolute_value(self, base_block: Header) -> Option<Self>
ckb-types
only.Given the base commitment block, this method converts a relative since value to an absolute since value for later comparison.
Trait Implementations§
Source§impl PartialOrd for Since
impl PartialOrd for Since
impl Copy for Since
impl Eq for Since
impl StructuralPartialEq for Since
Auto Trait Implementations§
impl Freeze for Since
impl RefUnwindSafe for Since
impl Send for Since
impl Sync for Since
impl Unpin for Since
impl UnwindSafe for Since
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