Struct lightning_invoice::PrivateRoute [−][src]
pub struct PrivateRoute(_);
Expand description
Private routing information
Invariants
The encoded route has to be <1024 5bit characters long (<=639 bytes or <=12 hops)
Implementations
Creates a new (partial) route from a list of hops
Returns the underlying list of hops
Trait Implementations
Calculate the base32 serialized length
type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
Convert a base32 slice to Self
.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more
Auto Trait Implementations
impl RefUnwindSafe for PrivateRoute
impl Send for PrivateRoute
impl Sync for PrivateRoute
impl Unpin for PrivateRoute
impl UnwindSafe for PrivateRoute
Blanket Implementations
Mutably borrows from an owned value. Read more