pub enum BgpErrorCodeParsingError {
UnknownCode(u8),
UnknownSubcode(u8),
DeprecatedCode(u8),
DeprecatedSubcode(u8),
}
Expand description
Error for parsing BGP error code
Variants§
Trait Implementations§
source§impl Clone for BgpErrorCodeParsingError
impl Clone for BgpErrorCodeParsingError
source§fn clone(&self) -> BgpErrorCodeParsingError
fn clone(&self) -> BgpErrorCodeParsingError
Returns a copy 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 Debug for BgpErrorCodeParsingError
impl Debug for BgpErrorCodeParsingError
source§impl Display for BgpErrorCodeParsingError
impl Display for BgpErrorCodeParsingError
source§impl Error for BgpErrorCodeParsingError
impl Error for BgpErrorCodeParsingError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<BgpErrorCodeParsingError> for BgpErrorCodeParsingError
impl PartialEq<BgpErrorCodeParsingError> for BgpErrorCodeParsingError
source§fn eq(&self, other: &BgpErrorCodeParsingError) -> bool
fn eq(&self, other: &BgpErrorCodeParsingError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for BgpErrorCodeParsingError
impl Serialize for BgpErrorCodeParsingError
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for BgpErrorCodeParsingError
impl StructuralEq for BgpErrorCodeParsingError
impl StructuralPartialEq for BgpErrorCodeParsingError
Auto Trait Implementations§
impl RefUnwindSafe for BgpErrorCodeParsingError
impl Send for BgpErrorCodeParsingError
impl Sync for BgpErrorCodeParsingError
impl Unpin for BgpErrorCodeParsingError
impl UnwindSafe for BgpErrorCodeParsingError
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.