pub struct ExpiryTime(/* private fields */);Implementations§
Source§impl ExpiryTime
impl ExpiryTime
pub const TOTAL_SIZE: usize = 8
pub const FIELD_SIZES: [usize; 1]
pub const FIELD_COUNT: usize = 1
pub fn value(&self) -> Uint64
pub fn as_reader<'r>(&'r self) -> ExpiryTimeReader<'r>
Trait Implementations§
Source§impl Clone for ExpiryTime
impl Clone for ExpiryTime
Source§fn clone(&self) -> ExpiryTime
fn clone(&self) -> ExpiryTime
Returns a duplicate 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 ExpiryTime
impl Debug for ExpiryTime
Source§impl Default for ExpiryTime
impl Default for ExpiryTime
Source§impl Display for ExpiryTime
impl Display for ExpiryTime
Source§impl Entity for ExpiryTime
impl Entity for ExpiryTime
const NAME: &'static str = "ExpiryTime"
type Builder = ExpiryTimeBuilder
fn new_unchecked(data: Bytes) -> Self
fn as_bytes(&self) -> Bytes
fn as_slice(&self) -> &[u8] ⓘ
fn from_slice(slice: &[u8]) -> VerificationResult<Self>
fn from_compatible_slice(slice: &[u8]) -> VerificationResult<Self>
fn new_builder() -> Self::Builder
fn as_builder(self) -> Self::Builder
Source§impl From<ExpiryTime> for InvoiceAttr
impl From<ExpiryTime> for InvoiceAttr
Source§fn from(value: ExpiryTime) -> Self
fn from(value: ExpiryTime) -> Self
Converts to this type from the input type.
Source§impl From<ExpiryTime> for InvoiceAttrUnion
impl From<ExpiryTime> for InvoiceAttrUnion
Source§fn from(item: ExpiryTime) -> Self
fn from(item: ExpiryTime) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !Freeze for ExpiryTime
impl RefUnwindSafe for ExpiryTime
impl Send for ExpiryTime
impl Sync for ExpiryTime
impl Unpin for ExpiryTime
impl UnsafeUnpin for ExpiryTime
impl UnwindSafe for ExpiryTime
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