pub enum ProtocolSupportError {
Empty,
NotCompiled {
version: String,
compiled: &'static [&'static str],
},
Duplicate(String),
}Expand description
Error returned for an invalid runtime protocol configuration.
Variants§
Empty
At least one protocol version must remain enabled.
NotCompiled
The requested version was not compiled into this build.
Fields
Duplicate(String)
A version appeared more than once in the preference list.
Trait Implementations§
Source§impl Clone for ProtocolSupportError
impl Clone for ProtocolSupportError
Source§fn clone(&self) -> ProtocolSupportError
fn clone(&self) -> ProtocolSupportError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProtocolSupportError
impl Debug for ProtocolSupportError
Source§impl Display for ProtocolSupportError
impl Display for ProtocolSupportError
impl Eq for ProtocolSupportError
Source§impl Error for ProtocolSupportError
impl Error for ProtocolSupportError
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 ProtocolSupportError
impl PartialEq for ProtocolSupportError
impl StructuralPartialEq for ProtocolSupportError
Auto Trait Implementations§
impl Freeze for ProtocolSupportError
impl RefUnwindSafe for ProtocolSupportError
impl Send for ProtocolSupportError
impl Sync for ProtocolSupportError
impl Unpin for ProtocolSupportError
impl UnsafeUnpin for ProtocolSupportError
impl UnwindSafe for ProtocolSupportError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.