Enum ckb_network::errors::PeerError
source · 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
NonReserved
Non-reserved peers
Banned
Peer is banned
ReachMaxInboundLimit
Reach max inbound limit
ReachMaxOutboundLimit
Reach max outbound limit
Trait Implementations§
source§impl PartialEq for PeerError
impl PartialEq for PeerError
impl Eq for PeerError
impl StructuralEq for PeerError
impl StructuralPartialEq for PeerError
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§
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