#[non_exhaustive]pub struct PolicyOptions {Show 14 fields
pub policy_statements: Vec<PolicyStatement>,
pub communities: Vec<Community>,
pub prefix_lists: Vec<PrefixList>,
pub as_paths: Vec<AsPath>,
pub as_path_groups: Vec<AsPathGroup>,
pub resolution_maps: Vec<ResolutionMap>,
pub dampings: Vec<Damping>,
pub conditions: Vec<PolicyCondition>,
pub route_filter_lists: Vec<RouteFilterList>,
pub source_address_filter_lists: Vec<RouteFilterList>,
pub as_lists: Vec<AsList>,
pub mac_lists: Vec<MacList>,
pub rib_lists: Vec<RibList>,
pub defaults: Option<PolicyDefaults>,
}Expand description
The top-level policy-options configuration.
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.policy_statements: Vec<PolicyStatement>§communities: Vec<Community>§prefix_lists: Vec<PrefixList>§as_paths: Vec<AsPath>§as_path_groups: Vec<AsPathGroup>§resolution_maps: Vec<ResolutionMap>§dampings: Vec<Damping>§conditions: Vec<PolicyCondition>§route_filter_lists: Vec<RouteFilterList>§source_address_filter_lists: Vec<RouteFilterList>§as_lists: Vec<AsList>§mac_lists: Vec<MacList>§rib_lists: Vec<RibList>§defaults: Option<PolicyDefaults>Trait Implementations§
Source§impl Clone for PolicyOptions
impl Clone for PolicyOptions
Source§impl Debug for PolicyOptions
impl Debug for PolicyOptions
impl Eq for PolicyOptions
Source§impl PartialEq for PolicyOptions
impl PartialEq for PolicyOptions
impl StructuralPartialEq for PolicyOptions
Auto Trait Implementations§
impl Forget for PolicyOptions
impl Freeze for PolicyOptionswhere
*const u8 is !null: Freeze,
PhantomData<PolicyStatement>: Freeze,
PhantomData<Community>: Freeze,
PhantomData<PrefixList>: Freeze,
PhantomData<AsPath>: Freeze,
PhantomData<AsPathGroup>: Freeze,
PhantomData<ResolutionMap>: Freeze,
PhantomData<Damping>: Freeze,
PhantomData<PolicyCondition>: Freeze,
PhantomData<RouteFilterList>: Freeze,
PhantomData<AsList>: Freeze,
PhantomData<MacList>: Freeze,
PhantomData<RibList>: Freeze,
PhantomData<u8>: Freeze,
impl Move for PolicyOptions
impl RefUnwindSafe for PolicyOptions
impl Send for PolicyOptionswhere
RawVecInner: Send,
impl Sync for PolicyOptionswhere
RawVecInner: Sync,
impl Unpin for PolicyOptions
impl UnsafeUnpin for PolicyOptionswhere
*const u8 is !null: UnsafeUnpin,
PhantomData<PolicyStatement>: UnsafeUnpin,
PhantomData<Community>: UnsafeUnpin,
PhantomData<PrefixList>: UnsafeUnpin,
PhantomData<AsPath>: UnsafeUnpin,
PhantomData<AsPathGroup>: UnsafeUnpin,
PhantomData<ResolutionMap>: UnsafeUnpin,
PhantomData<Damping>: UnsafeUnpin,
PhantomData<PolicyCondition>: UnsafeUnpin,
PhantomData<RouteFilterList>: UnsafeUnpin,
PhantomData<AsList>: UnsafeUnpin,
PhantomData<MacList>: UnsafeUnpin,
PhantomData<RibList>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for PolicyOptionswhere
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