Struct snowcap::example_networks::SimpleNet [−][src]
Trait Implementations
impl ExampleNetwork for SimpleNet[src]
fn net(initial_variant: usize) -> Network[src]
Get raw network without configuration
fn initial_config(net: &Network, variant: usize) -> Config[src]
Get the initial configuration
Variant 0:
- All link weights are set to 1
- The following bgp sessions are set:
- e1 --> r1 (eBGP)
- r1 --- r2 (iBGP Peer)
- r1 --- r3 (iBGP Peer)
- e4 --> r4 (eBGP)
Variant 1
- All link weights are set to 1
- The following bgp sessions are set:
- e1 --> r1 (eBGP)
- r1 --- r2 (iBGP Peer)
- r1 --- r3 (iBGP Peer)
- r1 --- r4 (iBGP Peer)
Variant 2
- All link weights are set to 1
- The following bgp sessions are set:
- e1 --> r1 (eBGP)
- e4 --> r4 (eBGP)
- r1 --- r2 (iBGP Peer)
- r1 --- r3 (iBGP Peer)
- r1 --- r4 (iBGP Peer)
- r2 --- r4 (iBGP Peer)
- r3 --- r4 (iBGP Peer)
fn final_config(net: &Network, variant: usize) -> Config[src]
Get the end configuration
Variant 0
- All link weights are set to 1
- The following bgp sessions are set:
- r4 --- r1 (iBGP Peer)
- r4 --- r2 (iBGP Peer)
- r4 --- r3 (iBGP Peer)
- e4 --> r4 (eBGP)
fn get_policy(net: &Network, _variant: usize) -> HardPolicy[src]
Auto Trait Implementations
impl RefUnwindSafe for SimpleNet[src]
impl Send for SimpleNet[src]
impl Sync for SimpleNet[src]
impl Unpin for SimpleNet[src]
impl UnwindSafe for SimpleNet[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>, [src]
V: MultiLane<T>,