#[non_exhaustive]pub struct SegmentList {
pub name: String,
pub srv6: bool,
pub compute: bool,
pub dynamic: bool,
pub inherit_label_nexthops: bool,
pub auto_translate: bool,
pub hops: Vec<SegmentHop>,
}Expand description
A segment-list <name>. The contents of dynamic are not extracted.
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.name: String§srv6: boolAn SRv6-TE segment list, whose hops are srv6-sids.
compute: bool§dynamic: bool§inherit_label_nexthops: bool§auto_translate: boolAn auto-translate block is configured, which allows IP addresses instead of labels.
hops: Vec<SegmentHop>Trait Implementations§
Source§impl Clone for SegmentList
impl Clone for SegmentList
Source§impl Debug for SegmentList
impl Debug for SegmentList
impl Eq for SegmentList
Source§impl PartialEq for SegmentList
impl PartialEq for SegmentList
impl StructuralPartialEq for SegmentList
Auto Trait Implementations§
impl Forget for SegmentList
impl Freeze for SegmentList
impl Move for SegmentList
impl RefUnwindSafe for SegmentList
impl Send for SegmentListwhere
RawVecInner: Send,
impl Sync for SegmentListwhere
RawVecInner: Sync,
impl Unpin for SegmentList
impl UnsafeUnpin for SegmentListwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<SegmentHop>: UnsafeUnpin,
impl UnwindSafe for SegmentListwhere
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