pub enum SupportedVersionsError {
MinVersionZero,
InvertedRange,
MaxAboveCurrent,
}Expand description
Why an explicit SupportedVersions::new range was rejected.
Variants§
MinVersionZero
The range’s lower bound was version 0; this protocol has no version 0, and the floor is 1.
InvertedRange
The range’s lower bound exceeded its upper bound; no version satisfies it, so it would reject every handshake.
MaxAboveCurrent
The range’s upper bound is newer than the grammar implemented by this crate.
Trait Implementations§
Source§impl Clone for SupportedVersionsError
impl Clone for SupportedVersionsError
impl Copy for SupportedVersionsError
Source§impl Debug for SupportedVersionsError
impl Debug for SupportedVersionsError
Source§impl Display for SupportedVersionsError
impl Display for SupportedVersionsError
impl Eq for SupportedVersionsError
Source§impl Error for SupportedVersionsError
impl Error for SupportedVersionsError
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 PartialEq for SupportedVersionsError
impl PartialEq for SupportedVersionsError
impl StructuralPartialEq for SupportedVersionsError
Auto Trait Implementations§
impl Freeze for SupportedVersionsError
impl RefUnwindSafe for SupportedVersionsError
impl Send for SupportedVersionsError
impl Sync for SupportedVersionsError
impl Unpin for SupportedVersionsError
impl UnsafeUnpin for SupportedVersionsError
impl UnwindSafe for SupportedVersionsError
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