Enum bgpkit_parser::models::Origin
source · #[repr(u8)]pub enum Origin {
IGP = 0,
EGP = 1,
INCOMPLETE = 2,
}
Variants§
IGP = 0
Interior Gateway Protocol
EGP = 1
Exterior Gateway Protocol https://datatracker.ietf.org/doc/html/rfc904
INCOMPLETE = 2
Trait Implementations§
source§impl From<Origin> for AttributeValue
impl From<Origin> for AttributeValue
source§impl PartialEq for Origin
impl PartialEq for Origin
source§impl TryFrom<u8> for Origin
impl TryFrom<u8> for Origin
§type Error = TryFromPrimitiveError<Origin>
type Error = TryFromPrimitiveError<Origin>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for Origin
impl TryFromPrimitive for Origin
impl Copy for Origin
impl Eq for Origin
impl StructuralPartialEq for Origin
Auto Trait Implementations§
impl RefUnwindSafe for Origin
impl Send for Origin
impl Sync for Origin
impl Unpin for Origin
impl UnwindSafe for Origin
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.