#[non_exhaustive]pub enum SupportedVersionsError {
Empty,
}Expand description
Why a set of supported versions was rejected.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Empty
A set with no members cannot describe a peer, and most of this type’s methods would have to invent an answer for it.
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 From<SupportedVersionsError> for ConnectError
impl From<SupportedVersionsError> for ConnectError
Source§fn from(source: SupportedVersionsError) -> Self
fn from(source: SupportedVersionsError) -> Self
Converts to this type from the input type.
Source§impl From<SupportedVersionsError> for StdioConnectError
impl From<SupportedVersionsError> for StdioConnectError
Source§fn from(source: SupportedVersionsError) -> Self
fn from(source: SupportedVersionsError) -> Self
Converts to this type from the input type.
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