Enum zettabgp::message::BgpMessageType
source · pub enum BgpMessageType {
Open,
Update,
Notification,
Keepalive,
}
Expand description
Bgp message type: open, update, notification or keepalive.
Variants§
Implementations§
source§impl BgpMessageType
impl BgpMessageType
sourcepub fn decode_from(code: u8) -> Result<BgpMessageType, BgpError>
pub fn decode_from(code: u8) -> Result<BgpMessageType, BgpError>
decodes BGP message type from byte code
Trait Implementations§
source§impl Clone for BgpMessageType
impl Clone for BgpMessageType
source§fn clone(&self) -> BgpMessageType
fn clone(&self) -> BgpMessageType
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 BgpMessageType
impl Debug for BgpMessageType
source§impl PartialEq for BgpMessageType
impl PartialEq for BgpMessageType
source§fn eq(&self, other: &BgpMessageType) -> bool
fn eq(&self, other: &BgpMessageType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for BgpMessageType
impl StructuralEq for BgpMessageType
impl StructuralPartialEq for BgpMessageType
Auto Trait Implementations§
impl RefUnwindSafe for BgpMessageType
impl Send for BgpMessageType
impl Sync for BgpMessageType
impl Unpin for BgpMessageType
impl UnwindSafe for BgpMessageType
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