pub enum OnionPacketError {
InvalidHopData,
UnknownVersion(u8),
Sphinx(SphinxError),
}Expand description
Errors that can occur when processing an onion packet.
Variants§
Trait Implementations§
Source§impl Debug for OnionPacketError
impl Debug for OnionPacketError
Source§impl Display for OnionPacketError
impl Display for OnionPacketError
Source§impl Error for OnionPacketError
impl Error for OnionPacketError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<SphinxError> for OnionPacketError
impl From<SphinxError> for OnionPacketError
Source§fn from(source: SphinxError) -> Self
fn from(source: SphinxError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OnionPacketError
impl RefUnwindSafe for OnionPacketError
impl Send for OnionPacketError
impl Sync for OnionPacketError
impl Unpin for OnionPacketError
impl UnsafeUnpin for OnionPacketError
impl UnwindSafe for OnionPacketError
Blanket Implementations§
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