Enum ckb_network::errors::PeerError [−][src]
pub enum PeerError {
SessionExists(SessionId),
PeerIdExists(PeerId),
NonReserved,
Banned,
ReachMaxInboundLimit,
ReachMaxOutboundLimit,
}Expand description
Peer error
Variants
SessionExists(SessionId)Session already exists
PeerIdExists(PeerId)Peer id exist
Non-reserved peers
Peer is banned
Reach max inbound limit
Reach max outbound limit
Trait Implementations
impl Eq for PeerError[src]
impl StructuralEq for PeerError[src]
impl StructuralPartialEq for PeerError[src]
Auto Trait Implementations
impl RefUnwindSafe for PeerError
impl Send for PeerError
impl Sync for PeerError
impl Unpin for PeerError
impl UnwindSafe for PeerError
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>,