pub enum GossipsubHandlerError {
MaxInboundSubstreams,
MaxOutboundSubstreams,
MaxTransmissionSize,
NegotiationTimeout,
NegotiationProtocolError(ProtocolError),
Io(Error),
}
Expand description
Errors that can occur in the protocols handler.
Variants
MaxInboundSubstreams
The maximum number of inbound substreams created has been exceeded.
MaxOutboundSubstreams
The maximum number of outbound substreams created has been exceeded.
MaxTransmissionSize
The message exceeds the maximum transmission size.
NegotiationTimeout
Protocol negotiation timeout.
NegotiationProtocolError(ProtocolError)
Protocol negotiation failed.
Io(Error)
IO error.
Trait Implementations
sourceimpl Debug for GossipsubHandlerError
impl Debug for GossipsubHandlerError
sourceimpl Display for GossipsubHandlerError
impl Display for GossipsubHandlerError
sourceimpl Error for GossipsubHandlerError
impl Error for GossipsubHandlerError
sourcepub fn source(&self) -> Option<&(dyn Error + 'static)>
pub fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<Error> for GossipsubHandlerError
impl From<Error> for GossipsubHandlerError
sourcepub fn from(error: Error) -> GossipsubHandlerError
pub fn from(error: Error) -> GossipsubHandlerError
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for GossipsubHandlerError
impl Send for GossipsubHandlerError
impl Sync for GossipsubHandlerError
impl Unpin for GossipsubHandlerError
impl UnwindSafe for GossipsubHandlerError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more