Struct InvoiceError
pub struct InvoiceError {
pub erroneous_field: Option<ErroneousField>,
pub message: UntrustedString,
}Expand description
An error in response to an InvoiceRequest or an Bolt12Invoice.
Fields§
§erroneous_field: Option<ErroneousField>The field in the InvoiceRequest or the Bolt12Invoice that contained an error.
message: UntrustedStringAn explanation of the error.
Implementations§
§impl InvoiceError
impl InvoiceError
pub fn from_string(s: String) -> InvoiceError
pub fn from_string(s: String) -> InvoiceError
Creates an InvoiceError with the given message.
Trait Implementations§
§impl Clone for InvoiceError
impl Clone for InvoiceError
§fn clone(&self) -> InvoiceError
fn clone(&self) -> InvoiceError
Returns a duplicate 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 more§impl Debug for InvoiceError
impl Debug for InvoiceError
§impl Display for InvoiceError
impl Display for InvoiceError
§impl From<Bolt12SemanticError> for InvoiceError
impl From<Bolt12SemanticError> for InvoiceError
§fn from(error: Bolt12SemanticError) -> InvoiceError
fn from(error: Bolt12SemanticError) -> InvoiceError
Converts to this type from the input type.
§impl Readable for InvoiceError
impl Readable for InvoiceError
§fn read<R>(reader: &mut R) -> Result<InvoiceError, DecodeError>where
R: Read,
fn read<R>(reader: &mut R) -> Result<InvoiceError, DecodeError>where
R: Read,
Reads a
Self in from the given Read.§impl Writeable for InvoiceError
impl Writeable for InvoiceError
Auto Trait Implementations§
impl Freeze for InvoiceError
impl RefUnwindSafe for InvoiceError
impl Send for InvoiceError
impl Sync for InvoiceError
impl Unpin for InvoiceError
impl UnwindSafe for InvoiceError
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync for T
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<T> MaybeReadable for Twhere
T: Readable,
impl<T> MaybeReadable for Twhere
T: Readable,
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.