pub enum RouterError<E, GE = E> {
North(E),
South(E),
East(E),
West(E),
Ground(GE),
BufferTooSmall {
needed: usize,
provided: usize,
},
IslMessageError(IslMessageError),
}Expand description
Error from a directional link or from ISL 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.
Ground(GE)
Error on the ground link.
BufferTooSmall
The caller’s buffer is too small for the received packet.
IslMessageError(IslMessageError)
Error parsing the ISL message.
Trait Implementations§
Source§impl<E: Clone, GE: Clone> Clone for RouterError<E, GE>
impl<E: Clone, GE: Clone> Clone for RouterError<E, GE>
Source§fn clone(&self) -> RouterError<E, GE>
fn clone(&self) -> RouterError<E, GE>
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, GE> Display for RouterError<E, GE>
impl<E, GE> Display for RouterError<E, GE>
Source§impl<E, GE> Error for RouterError<E, GE>
impl<E, GE> Error for RouterError<E, GE>
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<E, GE> From<IslMessageError> for RouterError<E, GE>
impl<E, GE> From<IslMessageError> for RouterError<E, GE>
Source§fn from(source: IslMessageError) -> Self
fn from(source: IslMessageError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<E, GE> Freeze for RouterError<E, GE>
impl<E, GE> RefUnwindSafe for RouterError<E, GE>where
E: RefUnwindSafe,
GE: RefUnwindSafe,
impl<E, GE> Send for RouterError<E, GE>
impl<E, GE> Sync for RouterError<E, GE>
impl<E, GE> Unpin for RouterError<E, GE>
impl<E, GE> UnsafeUnpin for RouterError<E, GE>where
E: UnsafeUnpin,
GE: UnsafeUnpin,
impl<E, GE> UnwindSafe for RouterError<E, GE>where
E: UnwindSafe,
GE: 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