Enum ethcore_light::net::Error [] [src]

pub enum Error {
    Rlp(DecoderError),
    Network(NetworkError),
    BufferEmpty,
    UnrecognizedPacket(u8),
    UnexpectedHandshake,
    WrongNetwork,
    UnknownPeer,
    UnsolicitedResponse,
    NotServer,
    UnsupportedProtocolVersion(u8),
    BadProtocolVersion,
    Overburdened,
}

Kinds of errors which can be encountered in the course of LES.

Variants

An RLP decoding error.

A network error.

Out of buffer.

Unrecognized packet code.

Unexpected handshake.

Peer on wrong network (wrong NetworkId or genesis hash)

Unknown peer.

Unsolicited response.

Not a server.

Unsupported protocol version.

Bad protocol version.

Peer is overburdened.

Methods

impl Error
[src]

What level of punishment does this error warrant?

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl From<DecoderError> for Error
[src]

Performs the conversion.

impl From<NetworkError> for Error
[src]

Performs the conversion.

impl Display for Error
[src]

Formats the value using the given formatter.