pub enum Error {
Show 18 variants
Serialization(Error),
Connection(Error),
BadMessage,
UnexpectedMessage,
MsgLen,
Banned,
ConnectionClose,
Timeout,
Store(Error),
Chain(Error),
PeerWithSelf,
NoDandelionRelay,
GenesisMismatch {
us: Hash,
peer: Hash,
},
Send(String),
PeerNotFound,
PeerNotBanned,
PeerException,
Internal,
}
Variants§
Serialization(Error)
Connection(Error)
BadMessage
Header type does not match the expected message type
UnexpectedMessage
MsgLen
Banned
ConnectionClose
Timeout
Store(Error)
Chain(Error)
PeerWithSelf
NoDandelionRelay
GenesisMismatch
Send(String)
PeerNotFound
PeerNotBanned
PeerException
Internal
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more