#[non_exhaustive]pub struct LocalAs {
pub autonomous_system: Option<String>,
pub loops: Option<String>,
pub private: bool,
pub alias: bool,
pub no_prepend_global_as: bool,
}Expand description
The local-as statement: the AS number the router presents to a peer, and how it is prepended.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.autonomous_system: Option<String>§loops: Option<String>How many times the local AS may appear in the AS path.
private: bool§alias: bool§no_prepend_global_as: boolTrait Implementations§
impl Eq for LocalAs
impl StructuralPartialEq for LocalAs
Auto Trait Implementations§
impl Forget for LocalAs
impl Freeze for LocalAs
impl Move for LocalAs
impl RefUnwindSafe for LocalAs
impl Send for LocalAswhere
RawVecInner: Send,
impl Sync for LocalAswhere
RawVecInner: Sync,
impl Unpin for LocalAs
impl UnsafeUnpin for LocalAs
impl UnwindSafe for LocalAswhere
RawVecInner: UnwindSafe,
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