pub enum SetupError {
NoCommonVersion,
MissingParameter(&'static str),
WrongParameterRole,
EmptyVersionList,
}Expand description
Errors from setup message validation or version negotiation.
Variants§
NoCommonVersion
Client and server share no supported protocol version.
MissingParameter(&'static str)
A required setup parameter is missing.
WrongParameterRole
Client included a parameter reserved for SERVER_SETUP.
EmptyVersionList
The supported versions list is empty.
Trait Implementations§
Source§impl Debug for SetupError
impl Debug for SetupError
Source§impl Display for SetupError
impl Display for SetupError
Source§impl Error for SetupError
impl Error for SetupError
1.30.0 · 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<SetupError> for EndpointError
impl From<SetupError> for EndpointError
Source§fn from(source: SetupError) -> Self
fn from(source: SetupError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SetupError
impl PartialEq for SetupError
impl Eq for SetupError
impl StructuralPartialEq for SetupError
Auto Trait Implementations§
impl Freeze for SetupError
impl RefUnwindSafe for SetupError
impl Send for SetupError
impl Sync for SetupError
impl Unpin for SetupError
impl UnsafeUnpin for SetupError
impl UnwindSafe for SetupError
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