Enum lightning::onion_message::SendError
source · [−]pub enum SendError {
Secp256k1(Error),
TooBigPacket,
TooFewBlindedHops,
InvalidFirstHop,
BufferFull,
}
Expand description
Errors that may occur when sending an onion message.
Variants
Secp256k1(Error)
Errored computing onion message packet keys.
TooBigPacket
Because implementations such as Eclair will drop onion messages where the message packet exceeds 32834 bytes, we refuse to send messages where the packet exceeds this size.
TooFewBlindedHops
The provided Destination
was an invalid BlindedRoute
, due to having fewer than two
blinded hops.
InvalidFirstHop
Our next-hop peer was offline or does not support onion message forwarding.
BufferFull
Our next-hop peer’s buffer was full or our total outbound buffer was full.
Trait Implementations
sourceimpl PartialEq<SendError> for SendError
impl PartialEq<SendError> for SendError
impl StructuralPartialEq for SendError
Auto Trait Implementations
impl RefUnwindSafe for SendError
impl Send for SendError
impl Sync for SendError
impl Unpin for SendError
impl UnwindSafe for SendError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more