#[non_exhaustive]pub struct StaticRoute {
pub prefix: String,
pub next_hops: Vec<String>,
pub discard: bool,
pub reject: bool,
pub receive: bool,
pub next_table: Option<String>,
pub qualified_next_hops: Vec<QualifiedNextHop>,
pub attributes: RouteAttributes,
}Expand description
A static route <prefix>. The next hop is one of next_hops, discard, reject, receive, next_table or
qualified_next_hops.
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.prefix: String§next_hops: Vec<String>§discard: bool§reject: bool§receive: bool§next_table: Option<String>§qualified_next_hops: Vec<QualifiedNextHop>§attributes: RouteAttributesTrait Implementations§
Source§impl Clone for StaticRoute
impl Clone for StaticRoute
Source§impl Debug for StaticRoute
impl Debug for StaticRoute
impl Eq for StaticRoute
Source§impl PartialEq for StaticRoute
impl PartialEq for StaticRoute
impl StructuralPartialEq for StaticRoute
Auto Trait Implementations§
impl Forget for StaticRoute
impl Freeze for StaticRoutewhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<QualifiedNextHop>: Freeze,
impl Move for StaticRoute
impl RefUnwindSafe for StaticRoute
impl Send for StaticRoutewhere
RawVecInner: Send,
impl Sync for StaticRoutewhere
RawVecInner: Sync,
impl Unpin for StaticRoute
impl UnsafeUnpin for StaticRoutewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<QualifiedNextHop>: UnsafeUnpin,
impl UnwindSafe for StaticRoutewhere
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