Enum routing::RoutingTableError [−]
pub enum RoutingTableError {
OwnNameDisallowed,
PeerNameUnsuitable,
AlreadyExists,
CannotRoute,
NoSuchPeer,
InvariantViolation,
}Routing table error variants.
Variants
OwnNameDisallowedAdding our own name to the routing table is disallowed.
PeerNameUnsuitableThe peer name to be added doesn't fall within any section in the routing table.
AlreadyExistsThe peer name to be added already exists in the routing table.
CannotRouteThe destination section doesn't have enough members to satisfy the requested route.
NoSuchPeerThe target peer doesn't exist on the network. (If it did, it would be in our own section and we would know of it).
InvariantViolationThe routing table state violates the network invariant
Trait Implementations
impl From<RoutingTableError> for RoutingError[src]
impl From<RoutingTableError> for RoutingErrorfn from(error: RoutingTableError) -> RoutingError[src]
fn from(error: RoutingTableError) -> RoutingErrorPerforms the conversion.
impl Debug for Error[src]
impl Debug for Errorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl PartialEq for Error[src]
impl PartialEq for Errorfn eq(&self, other: &Error) -> bool[src]
fn eq(&self, other: &Error) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Error[src]
impl Eq for Errorimpl Display for Error
impl Display for Errorimpl Error for Error
impl Error for ErrorAuto Trait Implementations
impl Send for RoutingTableError
impl Send for RoutingTableErrorimpl Sync for RoutingTableError
impl Sync for RoutingTableError