Skip to main content

Protocols

Struct Protocols 

Source
#[non_exhaustive]
pub struct Protocols {
Show 15 fields pub bgp: Option<Bgp>, pub evpn: Option<Evpn>, pub igmp: Option<Igmp>, pub isis: Option<Isis>, pub ldp: Option<Ldp>, pub lldp: Option<Lldp>, pub lldp_med: Option<LldpMed>, pub mld: Option<Mld>, pub mpls: Option<Mpls>, pub ospf: Option<Ospf>, pub ospf3: Option<Ospf3>, pub pcep: Option<Pcep>, pub pim: Option<Pim>, pub rsvp: Option<Rsvp>, pub source_packet_routing: Option<SourcePacketRouting>,
}
Expand description

The protocols hierarchy of a configuration: one field per protocol that is read, None if it is not configured.

l2vpn is read per routing instance, see RoutingInstance.

§Examples

use asterust::config::juniper;
use asterust_junos::protocols::protocols;

let config = juniper::parse_braces("protocols {\n    ospf {\n        area 0.0.0.0;\n    }\n}\n");
let protocols = protocols(&config);
assert_eq!(protocols.ospf.unwrap().areas[0].id, "0.0.0.0");
assert!(protocols.bgp.is_none());

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.
§bgp: Option<Bgp>§evpn: Option<Evpn>§igmp: Option<Igmp>§isis: Option<Isis>§ldp: Option<Ldp>§lldp: Option<Lldp>§lldp_med: Option<LldpMed>§mld: Option<Mld>§mpls: Option<Mpls>§ospf: Option<Ospf>§ospf3: Option<Ospf3>§pcep: Option<Pcep>§pim: Option<Pim>§rsvp: Option<Rsvp>§source_packet_routing: Option<SourcePacketRouting>

Trait Implementations§

Source§

impl Clone for Protocols

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Protocols

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Protocols

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for Protocols

Source§

impl PartialEq for Protocols

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Protocols

Auto Trait Implementations§

§

impl Forget for Protocols

§

impl Freeze for Protocols
where *const u8 is !null: Freeze, PhantomData<BgpGroup>: Freeze, PhantomData<u8>: Freeze, PhantomData<String>: Freeze, PhantomData<BgpFamily>: Freeze, PhantomData<(String, String)>: Freeze, PhantomData<BgpSrv6Locator>: Freeze, PhantomData<EvpnInterface>: Freeze, PhantomData<EvpnMacList>: Freeze, PhantomData<TraceFlag>: Freeze, PhantomData<EvpnVniOptions>: Freeze, PhantomData<MembershipInterface>: Freeze, PhantomData<IsisInterface>: Freeze, PhantomData<IsisLevel>: Freeze, PhantomData<IsisTeFamily>: Freeze, PhantomData<IsisSrv6Locator>: Freeze, PhantomData<LdpInterface>: Freeze, PhantomData<LdpSession>: Freeze, PhantomData<LldpInterface>: Freeze, PhantomData<LldpMedInterface>: Freeze, PhantomData<MplsInterface>: Freeze, PhantomData<MplsAdminGroup>: Freeze, PhantomData<MplsLabelSwitchedPath>: Freeze, PhantomData<MplsPath>: Freeze, PhantomData<MplsStaticLsp>: Freeze, PhantomData<MplsContainerLsp>: Freeze, PhantomData<MplsPollingProfile>: Freeze, PhantomData<MplsTeClass>: Freeze, PhantomData<OspfArea>: Freeze, PhantomData<OspfTopology>: Freeze, PhantomData<OspfRealm>: Freeze, PhantomData<PcepPce>: Freeze, PhantomData<PcepPceGroup>: Freeze, PhantomData<PimFamily>: Freeze, PhantomData<PimInterface>: Freeze, PhantomData<PimBidirectionalRp>: Freeze, PhantomData<PimBootstrapFamily>: Freeze, PhantomData<PimAnycastRp>: Freeze, PhantomData<PimLocalRpFamily>: Freeze, PhantomData<PimStaticRp>: Freeze, PhantomData<RsvpInterface>: Freeze, PhantomData<SegmentList>: Freeze, PhantomData<SourceRoutingPath>: Freeze,

§

impl Move for Protocols

§

impl RefUnwindSafe for Protocols

§

impl Send for Protocols
where RawVecInner: Send,

§

impl Sync for Protocols
where RawVecInner: Sync,

§

impl Unpin for Protocols
where *const u8 is !null: Unpin,

§

impl UnsafeUnpin for Protocols
where *const u8 is !null: UnsafeUnpin, PhantomData<BgpGroup>: UnsafeUnpin, PhantomData<u8>: UnsafeUnpin, PhantomData<String>: UnsafeUnpin, PhantomData<BgpFamily>: UnsafeUnpin, PhantomData<(String, String)>: UnsafeUnpin, PhantomData<BgpSrv6Locator>: UnsafeUnpin, PhantomData<EvpnInterface>: UnsafeUnpin, PhantomData<EvpnMacList>: UnsafeUnpin, PhantomData<TraceFlag>: UnsafeUnpin, PhantomData<EvpnVniOptions>: UnsafeUnpin, PhantomData<MembershipInterface>: UnsafeUnpin, PhantomData<IsisInterface>: UnsafeUnpin, PhantomData<IsisLevel>: UnsafeUnpin, PhantomData<IsisTeFamily>: UnsafeUnpin, PhantomData<IsisSrv6Locator>: UnsafeUnpin, PhantomData<LdpInterface>: UnsafeUnpin, PhantomData<LdpSession>: UnsafeUnpin, PhantomData<LldpInterface>: UnsafeUnpin, PhantomData<LldpMedInterface>: UnsafeUnpin, PhantomData<MplsInterface>: UnsafeUnpin, PhantomData<MplsAdminGroup>: UnsafeUnpin, PhantomData<MplsLabelSwitchedPath>: UnsafeUnpin, PhantomData<MplsPath>: UnsafeUnpin, PhantomData<MplsStaticLsp>: UnsafeUnpin, PhantomData<MplsContainerLsp>: UnsafeUnpin, PhantomData<MplsPollingProfile>: UnsafeUnpin, PhantomData<MplsTeClass>: UnsafeUnpin, PhantomData<OspfArea>: UnsafeUnpin, PhantomData<OspfTopology>: UnsafeUnpin, PhantomData<OspfRealm>: UnsafeUnpin, PhantomData<PcepPce>: UnsafeUnpin, PhantomData<PcepPceGroup>: UnsafeUnpin, PhantomData<PimFamily>: UnsafeUnpin, PhantomData<PimInterface>: UnsafeUnpin, PhantomData<PimBidirectionalRp>: UnsafeUnpin, PhantomData<PimBootstrapFamily>: UnsafeUnpin, PhantomData<PimAnycastRp>: UnsafeUnpin, PhantomData<PimLocalRpFamily>: UnsafeUnpin, PhantomData<PimStaticRp>: UnsafeUnpin, PhantomData<RsvpInterface>: UnsafeUnpin, PhantomData<SegmentList>: UnsafeUnpin, PhantomData<SourceRoutingPath>: UnsafeUnpin,

§

impl UnwindSafe for Protocols
where RawVecInner: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.