pub struct LinkStateNlri {
pub nlri_type: NlriType,
pub protocol_id: ProtocolId,
pub identifier: u64,
pub local_node_descriptors: NodeDescriptor,
pub remote_node_descriptors: Option<NodeDescriptor>,
pub link_descriptors: Option<LinkDescriptor>,
pub prefix_descriptors: Option<PrefixDescriptor>,
}Expand description
BGP Link-State NLRI structure
Fields§
§nlri_type: NlriType§protocol_id: ProtocolId§identifier: u64§local_node_descriptors: NodeDescriptor§remote_node_descriptors: Option<NodeDescriptor>§link_descriptors: Option<LinkDescriptor>§prefix_descriptors: Option<PrefixDescriptor>Implementations§
Source§impl LinkStateNlri
impl LinkStateNlri
pub fn new_node_nlri( protocol_id: ProtocolId, identifier: u64, local_node_descriptors: NodeDescriptor, ) -> Self
pub fn new_link_nlri( protocol_id: ProtocolId, identifier: u64, local_node_descriptors: NodeDescriptor, remote_node_descriptors: NodeDescriptor, link_descriptors: LinkDescriptor, ) -> Self
pub fn new_prefix_nlri( nlri_type: NlriType, protocol_id: ProtocolId, identifier: u64, local_node_descriptors: NodeDescriptor, prefix_descriptors: PrefixDescriptor, ) -> Self
Trait Implementations§
Source§impl Clone for LinkStateNlri
impl Clone for LinkStateNlri
Source§fn clone(&self) -> LinkStateNlri
fn clone(&self) -> LinkStateNlri
Returns a duplicate 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 LinkStateNlri
impl Debug for LinkStateNlri
Source§impl PartialEq for LinkStateNlri
impl PartialEq for LinkStateNlri
impl Eq for LinkStateNlri
impl StructuralPartialEq for LinkStateNlri
Auto Trait Implementations§
impl Freeze for LinkStateNlri
impl RefUnwindSafe for LinkStateNlri
impl Send for LinkStateNlri
impl Sync for LinkStateNlri
impl Unpin for LinkStateNlri
impl UnwindSafe for LinkStateNlri
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more