pub enum Error {
Peer(PeerError),
Io(Error),
P2P(P2PError),
Dial(String),
PeerStore(PeerStoreError),
}Expand description
All error on network module
Variants§
Peer(PeerError)
Peer error
Io(Error)
Io error
P2P(P2PError)
Error from tentacle
Dial(String)
Dail error
PeerStore(PeerStoreError)
Peer store error
Trait Implementations§
Source§impl From<DialerErrorKind> for Error
impl From<DialerErrorKind> for Error
Source§fn from(err: DialerErrorKind) -> Error
fn from(err: DialerErrorKind) -> Error
Converts to this type from the input type.
Source§impl From<ListenErrorKind> for Error
impl From<ListenErrorKind> for Error
Source§fn from(err: ListenErrorKind) -> Error
fn from(err: ListenErrorKind) -> Error
Converts to this type from the input type.
Source§impl From<PeerStoreError> for Error
impl From<PeerStoreError> for Error
Source§fn from(err: PeerStoreError) -> Error
fn from(err: PeerStoreError) -> Error
Converts to this type from the input type.
Source§impl From<ProtocolHandleErrorKind> for Error
impl From<ProtocolHandleErrorKind> for Error
Source§fn from(err: ProtocolHandleErrorKind) -> Error
fn from(err: ProtocolHandleErrorKind) -> Error
Converts to this type from the input type.
Source§impl From<SendErrorKind> for Error
impl From<SendErrorKind> for Error
Source§fn from(err: SendErrorKind) -> Error
fn from(err: SendErrorKind) -> Error
Converts to this type from the input type.
Source§impl From<TransportErrorKind> for Error
impl From<TransportErrorKind> for Error
Source§fn from(err: TransportErrorKind) -> Error
fn from(err: TransportErrorKind) -> Error
Converts to this type from the input type.
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more