Type Definition lightning::ln::features::InvoiceFeatures

source ·
pub type InvoiceFeatures = Features<InvoiceContext>;
Expand description

Features used within an invoice.

Trait Implementations§

source§

impl Base32Len for InvoiceFeatures

source§

fn base32_len(&self) -> usize

Calculate the base32 serialized length
source§

impl FromBase32 for InvoiceFeatures

§

type Err = Error

The associated error which can be returned from parsing (e.g. because of bad padding).
source§

fn from_base32(field_data: &[u5]) -> Result<InvoiceFeatures, Error>

Convert a base32 slice to Self.
source§

impl Readable for InvoiceFeatures

source§

fn read<R: Read>(r: &mut R) -> Result<Self, DecodeError>

Reads a Self in from the given Read.
source§

impl ToBase32 for InvoiceFeatures

source§

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.
§

fn to_base32(&self) -> Vec<u5, Global>

Convert Self to base32 vector
source§

impl Writeable for InvoiceFeatures

source§

fn write<W: Writer>(&self, w: &mut W) -> Result<(), Error>

Writes self out to the given Writer.
source§

fn encode(&self) -> Vec<u8>

Writes self out to a Vec<u8>.
source§

fn serialized_length(&self) -> usize

Gets the length of this object after it has been serialized. This can be overridden to optimize cases where we prepend an object with its length.