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
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more