Enum lightning_invoice::CreationError [−][src]
pub enum CreationError { DescriptionTooLong, RouteTooLong, TimestampOutOfBounds, ExpiryTimeOutOfBounds, }
Expand description
Errors that may occur when constructing a new RawInvoice
or Invoice
Variants
The supplied description string was longer than 639 bytes (see Description::new(…)
)
The specified route has too many hops and can’t be encoded
The unix timestamp of the supplied date is <0 or can’t be represented as SystemTime
The supplied expiry time could cause an overflow if added to a PositiveTimestamp
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CreationError
impl Send for CreationError
impl Sync for CreationError
impl Unpin for CreationError
impl UnwindSafe for CreationError
Blanket Implementations
Mutably borrows from an owned value. Read more