Enum routing::RoutingError [] [src]

pub enum RoutingError {
    NotBootstrapped,
    Terminated,
    BadAuthority,
    AlreadyConnected,
    UnknownMessageType,
    FailedSignature,
    NotEnoughSignatures,
    DuplicateSignatures,
    FilterCheckFailed,
    FailedToBootstrap,
    RoutingTableEmpty,
    RejectedPublicId,
    RefusedFromRoutingTable,
    RejectedGetCloseGroup,
    RejectedClientMessage,
    Utf8(Utf8Error),
    Interface(InterfaceError),
    Io(Error),
    Crust(CrustError),
    SendEventError(SendError<Event>),
    InvalidStateForOperation,
    SerialisationError(SerialisationError),
    AsymmetricDecryptionFailure,
    UnknownConnection(PeerId),
    DirectionCheckFailed,
    RoutingTableBucketIndexFailed,
    InvalidDestination,
    ProxyConnectionNotFound,
    ClientConnectionNotFound,
    InvalidSource,
    CannotTunnelThroughTunnel,
    HashMismatch,
}

The type of errors that can occur during handling of routing events.

Variants

NotBootstrapped

The node/client has not bootstrapped yet

Terminated

Invalid State

BadAuthority

Invalid requester or handler authorities

AlreadyConnected

Failure to connect to an already connected node

UnknownMessageType

Received message having unknown type

FailedSignature

Failed signature check

NotEnoughSignatures

Not Enough signatures

DuplicateSignatures

Duplicate signatures

FilterCheckFailed

Duplicate request received

FailedToBootstrap

Failure to bootstrap off the provided endpoints

RoutingTableEmpty

Unexpected empty routing table

RejectedPublicId

Public id rejected because of disallowed relocated status

RefusedFromRoutingTable

Routing table did not add the node information, either because it was already added, or because it did not improve the routing table

RejectedGetCloseGroup

Rejected providing the close group, because the destination address does not match any of the sender's buckets

RejectedClientMessage

A client with client_restriction == true tried to send a message restricted to nodes.

Utf8(Utf8Error)

String errors

Interface(InterfaceError)

Interface error

Io(Error)

i/o error

Crust(CrustError)

Crust error

SendEventError(SendError<Event>)

Channel sending error

InvalidStateForOperation

Current state is invalid for the operation

SerialisationError(SerialisationError)

Serialisation Error

AsymmetricDecryptionFailure

Asymmetric Decryption Failure

UnknownConnection(PeerId)

Unknown Connection

DirectionCheckFailed

The message is not getting closer to the target

RoutingTableBucketIndexFailed

Density mismatch

InvalidDestination

Invalid Destination

ProxyConnectionNotFound

Connection to proxy node does not exist in proxy map

ClientConnectionNotFound

Connection to client does not exist in client map

InvalidSource

Invalid Source

CannotTunnelThroughTunnel

Attempted to use a node as a tunnel that is not directly connected

HashMismatch

Decoded a user message with an unexpected hash.

Trait Implementations

impl Debug for RoutingError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl From<Utf8Error> for RoutingError
[src]

fn from(error: Utf8Error) -> RoutingError

Performs the conversion.

impl From<Error> for RoutingError
[src]

fn from(error: Error) -> RoutingError

Performs the conversion.

impl From<InterfaceError> for RoutingError
[src]

fn from(error: InterfaceError) -> RoutingError

Performs the conversion.

impl From<CrustError> for RoutingError
[src]

fn from(error: CrustError) -> RoutingError

Performs the conversion.

impl From<SendError<Event>> for RoutingError
[src]

fn from(error: SendError<Event>) -> RoutingError

Performs the conversion.

impl From<SerialisationError> for RoutingError
[src]

fn from(error: SerialisationError) -> RoutingError

Performs the conversion.