Enum ckb_network::errors::Error [−][src]
pub enum Error { Peer(PeerError), Io(IoError), P2P(P2PError), Dial(String), PeerStore(PeerStoreError), }
Expand description
All error on network module
Variants
Peer(PeerError)
Peer error
Io(IoError)
Io error
P2P(P2PError)
Error from tentacle
Dial(String)
Dail error
PeerStore(PeerStoreError)
Peer store error
Trait Implementations
impl From<DialerErrorKind> for Error
[src]
impl From<DialerErrorKind> for Error
[src]fn from(err: DialerErrorKind) -> Error
[src]
fn from(err: DialerErrorKind) -> Error
[src]Performs the conversion.
impl From<ListenErrorKind> for Error
[src]
impl From<ListenErrorKind> for Error
[src]fn from(err: ListenErrorKind) -> Error
[src]
fn from(err: ListenErrorKind) -> Error
[src]Performs the conversion.
impl From<PeerStoreError> for Error
[src]
impl From<PeerStoreError> for Error
[src]fn from(err: PeerStoreError) -> Error
[src]
fn from(err: PeerStoreError) -> Error
[src]Performs the conversion.
impl From<ProtocolHandleErrorKind> for Error
[src]
impl From<ProtocolHandleErrorKind> for Error
[src]fn from(err: ProtocolHandleErrorKind) -> Error
[src]
fn from(err: ProtocolHandleErrorKind) -> Error
[src]Performs the conversion.
impl From<SendErrorKind> for Error
[src]
impl From<SendErrorKind> for Error
[src]fn from(err: SendErrorKind) -> Error
[src]
fn from(err: SendErrorKind) -> Error
[src]Performs the conversion.
impl From<TransportErrorKind> for Error
[src]
impl From<TransportErrorKind> for Error
[src]fn from(err: TransportErrorKind) -> Error
[src]
fn from(err: TransportErrorKind) -> Error
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,