pub enum NegotiateError {
Request {
source: Error,
},
Deserialization {
source: Error,
},
Unsupported,
}
Expand description
Errors that can occur during negotiating protocol version
Variants§
Trait Implementations§
Source§impl Debug for NegotiateError
impl Debug for NegotiateError
Source§impl Display for NegotiateError
impl Display for NegotiateError
Source§impl Error for NegotiateError
impl Error for NegotiateError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for NegotiateError
impl From<Error> for NegotiateError
Source§impl From<Error> for NegotiateError
impl From<Error> for NegotiateError
Source§impl From<NegotiateError> for BuilderError
impl From<NegotiateError> for BuilderError
Source§fn from(source: NegotiateError) -> Self
fn from(source: NegotiateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NegotiateError
impl !RefUnwindSafe for NegotiateError
impl Send for NegotiateError
impl Sync for NegotiateError
impl Unpin for NegotiateError
impl !UnwindSafe for NegotiateError
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