Enum ethcore_sync::ErrorKind
source · [−]pub enum ErrorKind {
Show 16 variants
Msg(String),
SocketIo(IoError),
Decompression(InvalidInput),
Rlp(DecoderError),
AddressParse,
AddressResolve(Option<Error>),
Auth,
BadProtocol,
Expired,
PeerNotFound,
Disconnect(DisconnectReason),
InvalidNodeId,
OversizedPacket,
ProcessTooManyFiles,
SystemTooManyFiles,
Io(Error),
// some variants omitted
}
Expand description
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
SocketIo(IoError)
Socket IO error.
Decompression(InvalidInput)
Decompression error.
Rlp(DecoderError)
Rlp decoder error.
AddressParse
Error concerning the network address parsing subsystem.
AddressResolve(Option<Error>)
Error concerning the network address resolution subsystem.
Auth
Authentication failure
BadProtocol
Unrecognised protocol
Expired
Expired message
PeerNotFound
Peer not found
Disconnect(DisconnectReason)
Peer is disconnected
InvalidNodeId
Invalid node id
OversizedPacket
Packet size is over the protocol limit
ProcessTooManyFiles
Reached system resource limits for this process
SystemTooManyFiles
Reached system wide resource limits
Io(Error)
An unknown IO error occurred.
Implementations
sourceimpl ErrorKind
impl ErrorKind
sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more