Enum routing::RoutingTableError[]

pub enum RoutingTableError {
    OwnNameDisallowed,
    PeerNameUnsuitable,
    AlreadyExists,
    CannotRoute,
    NoSuchPeer,
    InvariantViolation,
}

Routing table error variants.

Variants

Adding our own name to the routing table is disallowed.

The peer name to be added doesn't fall within any section in the routing table.

The peer name to be added already exists in the routing table.

The destination section doesn't have enough members to satisfy the requested route.

The target peer doesn't exist on the network. (If it did, it would be in our own section and we would know of it).

The routing table state violates the network invariant

Trait Implementations

impl From<RoutingTableError> for RoutingError
[src]

Performs the conversion.

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Error
[src]

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

This method tests for !=.

impl Eq for Error
[src]

impl Display for Error

Formats the value using the given formatter. Read more

impl Error for Error

This method is soft-deprecated. Read more

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

Auto Trait Implementations