Struct zettabgp::BgpCapAddPath
source · pub struct BgpCapAddPath {
pub afi: u16,
pub safi: u8,
pub send: bool,
pub receive: bool,
}
Expand description
BGP capability AddPath.
Fields§
§afi: u16
§safi: u8
§send: bool
§receive: bool
Implementations§
source§impl BgpCapAddPath
impl BgpCapAddPath
pub fn response(src: &BgpCapAddPath) -> BgpCapAddPath
pub fn new_from_cap( base_safi: BgpCapability, send: bool, receive: bool ) -> Result<BgpCapAddPath, BgpError>
pub fn encode_to(&self, buf: &mut [u8]) -> Result<(), BgpError>
pub fn decode_from(buf: &[u8]) -> Result<BgpCapAddPath, BgpError>
Trait Implementations§
source§impl Clone for BgpCapAddPath
impl Clone for BgpCapAddPath
source§fn clone(&self) -> BgpCapAddPath
fn clone(&self) -> BgpCapAddPath
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 BgpCapAddPath
impl Debug for BgpCapAddPath
source§impl Hash for BgpCapAddPath
impl Hash for BgpCapAddPath
source§impl Ord for BgpCapAddPath
impl Ord for BgpCapAddPath
source§fn cmp(&self, other: &BgpCapAddPath) -> Ordering
fn cmp(&self, other: &BgpCapAddPath) -> 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 BgpCapAddPath
impl PartialEq for BgpCapAddPath
source§fn eq(&self, other: &BgpCapAddPath) -> bool
fn eq(&self, other: &BgpCapAddPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for BgpCapAddPath
impl PartialOrd for BgpCapAddPath
source§fn partial_cmp(&self, other: &BgpCapAddPath) -> Option<Ordering>
fn partial_cmp(&self, other: &BgpCapAddPath) -> 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 BgpCapAddPath
impl StructuralEq for BgpCapAddPath
impl StructuralPartialEq for BgpCapAddPath
Auto Trait Implementations§
impl RefUnwindSafe for BgpCapAddPath
impl Send for BgpCapAddPath
impl Sync for BgpCapAddPath
impl Unpin for BgpCapAddPath
impl UnwindSafe for BgpCapAddPath
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