Struct lightning_invoice::MinFinalCltvExpiry
source · [−]pub struct MinFinalCltvExpiry(pub u64);
Expand description
min_final_cltv_expiry
to use for the last HTLC in the route
Tuple Fields
0: u64
Trait Implementations
sourceimpl Base32Len for MinFinalCltvExpiry
impl Base32Len for MinFinalCltvExpiry
sourcefn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
sourceimpl Clone for MinFinalCltvExpiry
impl Clone for MinFinalCltvExpiry
sourcefn clone(&self) -> MinFinalCltvExpiry
fn clone(&self) -> MinFinalCltvExpiry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MinFinalCltvExpiry
impl Debug for MinFinalCltvExpiry
sourceimpl FromBase32 for MinFinalCltvExpiry
impl FromBase32 for MinFinalCltvExpiry
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
sourcefn from_base32(field_data: &[u5]) -> Result<MinFinalCltvExpiry, ParseError>
fn from_base32(field_data: &[u5]) -> Result<MinFinalCltvExpiry, ParseError>
Convert a base32 slice to Self
.
sourceimpl Hash for MinFinalCltvExpiry
impl Hash for MinFinalCltvExpiry
sourceimpl PartialEq<MinFinalCltvExpiry> for MinFinalCltvExpiry
impl PartialEq<MinFinalCltvExpiry> for MinFinalCltvExpiry
sourcefn eq(&self, other: &MinFinalCltvExpiry) -> bool
fn eq(&self, other: &MinFinalCltvExpiry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &MinFinalCltvExpiry) -> bool
fn ne(&self, other: &MinFinalCltvExpiry) -> bool
This method tests for !=
.
sourceimpl ToBase32 for MinFinalCltvExpiry
impl ToBase32 for MinFinalCltvExpiry
sourcefn write_base32<W: WriteBase32>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
fn write_base32<W: WriteBase32>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err>
Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more
impl Eq for MinFinalCltvExpiry
impl StructuralEq for MinFinalCltvExpiry
impl StructuralPartialEq for MinFinalCltvExpiry
Auto Trait Implementations
impl RefUnwindSafe for MinFinalCltvExpiry
impl Send for MinFinalCltvExpiry
impl Sync for MinFinalCltvExpiry
impl Unpin for MinFinalCltvExpiry
impl UnwindSafe for MinFinalCltvExpiry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more