Struct lightning_invoice::PrivateRoute
source · 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§
source§impl PrivateRoute
impl PrivateRoute
sourcepub fn new(hops: RouteHint) -> Result<PrivateRoute, CreationError>
pub fn new(hops: RouteHint) -> Result<PrivateRoute, CreationError>
Creates a new (partial) route from a list of hops
sourcepub fn into_inner(self) -> RouteHint
pub fn into_inner(self) -> RouteHint
Returns the underlying list of hops
Trait Implementations§
source§impl Base32Len for PrivateRoute
impl Base32Len for PrivateRoute
source§fn base32_len(&self) -> usize
fn base32_len(&self) -> usize
Calculate the base32 serialized length
source§impl Clone for PrivateRoute
impl Clone for PrivateRoute
source§fn clone(&self) -> PrivateRoute
fn clone(&self) -> PrivateRoute
Returns a copy 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 PrivateRoute
impl Debug for PrivateRoute
source§impl Deref for PrivateRoute
impl Deref for PrivateRoute
source§impl FromBase32 for PrivateRoute
impl FromBase32 for PrivateRoute
§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing (e.g. because of bad padding).
source§fn from_base32(field_data: &[u5]) -> Result<PrivateRoute, ParseError>
fn from_base32(field_data: &[u5]) -> Result<PrivateRoute, ParseError>
Convert a base32 slice to
Self
.