Enum snowcap::netsim::NetworkError[][src]

pub enum NetworkError {
Show 17 variants DeviceError(DeviceError), ConfigError(ConfigError), DeviceNotFound(RouterId), DeviceNameNotFound(String), DeviceIsExternalRouter(RouterId), ForwardingLoop(Vec<RouterId>), ForwardingBlackHole(Vec<RouterId>), InvalidBgpSessionType(RouterIdRouterIdBgpSessionType), ConvergenceLoop(Vec<Event>, Vec<Network>), NoConvergence, RoutersNotConnected(RouterIdRouterId), InvalidBgpTable(RouterId), UnexpectedEventConvergenceLoop, InvalidEvent(Event), HistoryError(&'static str), UnsatisfiedConstraints(PolicyError), NoEventsToReorder,
}
Expand description

Network Errors

Variants

DeviceError(DeviceError)

Device Error which cannot be handled

ConfigError(ConfigError)

Configuration error

DeviceNotFound(RouterId)

Device is not present in the topology

DeviceNameNotFound(String)

Device name is not present in the topology

DeviceIsExternalRouter(RouterId)

Device must be an internal router, but an external router was passed

ForwardingLoop(Vec<RouterId>)

Forwarding loop detected

ForwardingBlackHole(Vec<RouterId>)

Black hole detected

InvalidBgpSessionType(RouterIdRouterIdBgpSessionType)

Invalid BGP session type

ConvergenceLoop(Vec<Event>, Vec<Network>)

Convergence Problem, but loop was detected

NoConvergence

Convergence Problem

RoutersNotConnected(RouterIdRouterId)

Two routers are not adjacent

InvalidBgpTable(RouterId)

The BGP table is invalid

UnexpectedEventConvergenceLoop

Error encountered while finding convergence loop. Enqueued event does not match the expectation.

InvalidEvent(Event)

Event cannot be handled by the network

HistoryError(&'static str)

History is invalid

UnsatisfiedConstraints(PolicyError)

Constraints are not satisfied during convergence

NoEventsToReorder

No events to reorder (This error is only thorwn when approximating transient state violation probability in Network::apply_modifier_check_transient)

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.