pub enum GossipError<E> {
North(E),
South(E),
East(E),
West(E),
BufferTooSmall {
needed: usize,
provided: usize,
},
}Expand description
Error from a directional link or from gossip parsing.
Variants§
North(E)
Error on the north link.
South(E)
Error on the south link.
East(E)
Error on the east link.
West(E)
Error on the west link.
BufferTooSmall
The caller’s buffer is too small for the payload.
Trait Implementations§
Source§impl<E: Clone> Clone for GossipError<E>
impl<E: Clone> Clone for GossipError<E>
Source§fn clone(&self) -> GossipError<E>
fn clone(&self) -> GossipError<E>
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 moreSource§impl<E: Debug> Debug for GossipError<E>
impl<E: Debug> Debug for GossipError<E>
Source§impl<E> Display for GossipError<E>where
E: Display,
impl<E> Display for GossipError<E>where
E: Display,
Source§impl<E> Error for GossipError<E>
impl<E> Error for GossipError<E>
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<E> Freeze for GossipError<E>where
E: Freeze,
impl<E> RefUnwindSafe for GossipError<E>where
E: RefUnwindSafe,
impl<E> Send for GossipError<E>where
E: Send,
impl<E> Sync for GossipError<E>where
E: Sync,
impl<E> Unpin for GossipError<E>where
E: Unpin,
impl<E> UnsafeUnpin for GossipError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for GossipError<E>where
E: UnwindSafe,
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