Struct zettabgp::BgpCapLLGR
source · pub struct BgpCapLLGR {
pub afi: u16,
pub safi: u8,
pub flags: u8,
pub stale_time: u32,
}
Expand description
BGP capability LLGR
Fields§
§afi: u16
§safi: u8
§flags: u8
§stale_time: u32
Implementations§
source§impl BgpCapLLGR
impl BgpCapLLGR
pub fn new_from_cap( base_safi: BgpCapability, flags: u8, stale_time: u32 ) -> Result<BgpCapLLGR, BgpError>
pub fn encode_to(&self, buf: &mut [u8]) -> Result<(), BgpError>
pub fn decode_from(buf: &[u8]) -> Result<BgpCapLLGR, BgpError>
Trait Implementations§
source§impl Clone for BgpCapLLGR
impl Clone for BgpCapLLGR
source§fn clone(&self) -> BgpCapLLGR
fn clone(&self) -> BgpCapLLGR
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 BgpCapLLGR
impl Debug for BgpCapLLGR
source§impl Hash for BgpCapLLGR
impl Hash for BgpCapLLGR
source§impl Ord for BgpCapLLGR
impl Ord for BgpCapLLGR
source§fn cmp(&self, other: &BgpCapLLGR) -> Ordering
fn cmp(&self, other: &BgpCapLLGR) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BgpCapLLGR
impl PartialEq for BgpCapLLGR
source§fn eq(&self, other: &BgpCapLLGR) -> bool
fn eq(&self, other: &BgpCapLLGR) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BgpCapLLGR
impl PartialOrd for BgpCapLLGR
source§fn partial_cmp(&self, other: &BgpCapLLGR) -> Option<Ordering>
fn partial_cmp(&self, other: &BgpCapLLGR) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for BgpCapLLGR
impl StructuralEq for BgpCapLLGR
impl StructuralPartialEq for BgpCapLLGR
Auto Trait Implementations§
impl RefUnwindSafe for BgpCapLLGR
impl Send for BgpCapLLGR
impl Sync for BgpCapLLGR
impl Unpin for BgpCapLLGR
impl UnwindSafe for BgpCapLLGR
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