pub enum ProtocolChoiceError {
MultistreamSelectError(MultistreamSelectError),
UnexpectedMessage,
NoProtocolFound,
}
Expand description
Error that can happen when negotiating a protocol with the remote.
Variants
MultistreamSelectError(MultistreamSelectError)
Error in the protocol.
UnexpectedMessage
Received a message from the remote that makes no sense in the current context.
NoProtocolFound
We don’t support any protocol in common with the remote.
Trait Implementations
sourceimpl Debug for ProtocolChoiceError
impl Debug for ProtocolChoiceError
sourceimpl Display for ProtocolChoiceError
impl Display for ProtocolChoiceError
sourceimpl Error for ProtocolChoiceError
impl Error for ProtocolChoiceError
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 ProtocolChoiceError
impl From<Error> for ProtocolChoiceError
sourcefn from(err: IoError) -> ProtocolChoiceError
fn from(err: IoError) -> ProtocolChoiceError
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 ProtocolChoiceError
impl Send for ProtocolChoiceError
impl Sync for ProtocolChoiceError
impl Unpin for ProtocolChoiceError
impl !UnwindSafe for ProtocolChoiceError
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