pub enum MultiHopAssignmentError {
EmptyChain,
}Expand description
Structural-invariant failures rejected when deserialising a
crate::control::MultiHopAssignment.
Surfaces inside the serde deserialize pipeline via the
#[serde(try_from = "...")] shim; callers see it through the
standard postcard / serde error path.
Variants§
EmptyChain
Decoded chain held zero forwarders. A multi-hop assignment with
no forwarders is by definition the single-hop case and MUST be
expressed as crate::control::MatchResponse::SingleHop.
Trait Implementations§
Source§impl Debug for MultiHopAssignmentError
impl Debug for MultiHopAssignmentError
Source§impl Display for MultiHopAssignmentError
impl Display for MultiHopAssignmentError
Source§impl Error for MultiHopAssignmentError
impl Error for MultiHopAssignmentError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for MultiHopAssignmentError
impl RefUnwindSafe for MultiHopAssignmentError
impl Send for MultiHopAssignmentError
impl Sync for MultiHopAssignmentError
impl Unpin for MultiHopAssignmentError
impl UnsafeUnpin for MultiHopAssignmentError
impl UnwindSafe for MultiHopAssignmentError
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