#[non_exhaustive]pub struct SegmentHop {
pub name: String,
pub strict: bool,
pub loose: bool,
pub ip_address: Option<String>,
pub label: Option<String>,
pub label_type: Option<String>,
pub srv6_sid: Option<String>,
}Expand description
A hop of a SegmentList, written <name> srv6-sid <sid>; or as a block.
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§strict: bool§loose: bool§ip_address: Option<String>§label: Option<String>§label_type: Option<String>node, for a hop that is the address of a node rather than a link.
srv6_sid: Option<String>Trait Implementations§
Source§impl Clone for SegmentHop
impl Clone for SegmentHop
Source§impl Debug for SegmentHop
impl Debug for SegmentHop
impl Eq for SegmentHop
Source§impl PartialEq for SegmentHop
impl PartialEq for SegmentHop
impl StructuralPartialEq for SegmentHop
Auto Trait Implementations§
impl Forget for SegmentHop
impl Freeze for SegmentHop
impl Move for SegmentHop
impl RefUnwindSafe for SegmentHop
impl Send for SegmentHopwhere
RawVecInner: Send,
impl Sync for SegmentHopwhere
RawVecInner: Sync,
impl Unpin for SegmentHop
impl UnsafeUnpin for SegmentHop
impl UnwindSafe for SegmentHopwhere
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