Enum routing::RoutingTableError [−]
pub enum RoutingTableError { OwnNameDisallowed, PeerNameUnsuitable, AlreadyExists, CannotRoute, NoSuchPeer, InvariantViolation, }
Routing table error variants.
Variants
OwnNameDisallowed
Adding our own name to the routing table is disallowed.
PeerNameUnsuitable
The peer name to be added doesn't fall within any section in the routing table.
AlreadyExists
The peer name to be added already exists in the routing table.
CannotRoute
The destination section doesn't have enough members to satisfy the requested route.
NoSuchPeer
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).
InvariantViolation
The routing table state violates the network invariant
Trait Implementations
impl From<RoutingTableError> for RoutingError
[src]
impl From<RoutingTableError> for RoutingError
fn from(error: RoutingTableError) -> RoutingError
[src]
fn from(error: RoutingTableError) -> RoutingError
Performs the conversion.
impl Debug for Error
[src]
impl Debug for Error
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Error
[src]
impl PartialEq for Error
fn eq(&self, other: &Error) -> bool
[src]
fn eq(&self, other: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Error
[src]
impl Eq for Error
impl Display for Error
impl Display for Error
impl Error for Error
impl Error for Error
Auto Trait Implementations
impl Send for RoutingTableError
impl Send for RoutingTableError
impl Sync for RoutingTableError
impl Sync for RoutingTableError