pub enum PeerError {
Show 13 variants
Io(String),
Timeout,
SendError(String),
ReceiveError(String),
Killed(String),
MessageDecode(String),
MessageEncode(String),
Disconnected,
Unknown(String),
Blockchain(BlockchainError),
BlockMetaStore(BlockMetaStoreError),
SyncError(String),
IncorrectResponse,
}Variants§
Io(String)
Timeout
SendError(String)
ReceiveError(String)
Killed(String)
MessageDecode(String)
MessageEncode(String)
Disconnected
Unknown(String)
Blockchain(BlockchainError)
BlockMetaStore(BlockMetaStoreError)
SyncError(String)
IncorrectResponse
Trait Implementations§
Source§impl Error for PeerError
impl Error for PeerError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<BlockMetaStoreError> for PeerError
impl From<BlockMetaStoreError> for PeerError
Source§fn from(source: BlockMetaStoreError) -> Self
fn from(source: BlockMetaStoreError) -> Self
Converts to this type from the input type.
Source§impl From<BlockchainError> for PeerError
impl From<BlockchainError> for PeerError
Source§fn from(source: BlockchainError) -> Self
fn from(source: BlockchainError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PeerError
impl RefUnwindSafe for PeerError
impl Send for PeerError
impl Sync for PeerError
impl Unpin for PeerError
impl UnwindSafe for PeerError
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