pub enum MultistreamSelectError {
IoError(Error),
FailedHandshake,
UnknownMessage,
WrongProtocolName,
VarintParseError(String),
}
Expand description
Error at the multistream-select layer of communication.
Variants
IoError(Error)
I/O error.
FailedHandshake
The remote doesn’t use the same multistream-select protocol as we do.
UnknownMessage
Received an unknown message from the remote.
WrongProtocolName
Protocol names must always start with /
, otherwise this error is returned.
VarintParseError(String)
Failure to parse variable-length integer.
Trait Implementations
sourceimpl Debug for MultistreamSelectError
impl Debug for MultistreamSelectError
sourceimpl Display for MultistreamSelectError
impl Display for MultistreamSelectError
sourceimpl Error for MultistreamSelectError
impl Error for MultistreamSelectError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
sourceimpl From<Error> for MultistreamSelectError
impl From<Error> for MultistreamSelectError
sourcefn from(err: Error) -> MultistreamSelectError
fn from(err: Error) -> MultistreamSelectError
Converts to this type from the input type.
sourceimpl From<Error> for MultistreamSelectError
impl From<Error> for MultistreamSelectError
sourcefn from(err: Error) -> MultistreamSelectError
fn from(err: Error) -> MultistreamSelectError
Converts to this type from the input type.
sourceimpl From<MultistreamSelectError> for ProtocolChoiceError
impl From<MultistreamSelectError> for ProtocolChoiceError
sourcefn from(err: MultistreamSelectError) -> ProtocolChoiceError
fn from(err: MultistreamSelectError) -> ProtocolChoiceError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for MultistreamSelectError
impl Send for MultistreamSelectError
impl Sync for MultistreamSelectError
impl Unpin for MultistreamSelectError
impl !UnwindSafe for MultistreamSelectError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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