pub enum EngineKeyParseError {
Empty,
MissingTargetClassSeparator,
UnknownEngine(String),
UnknownTargetClass(String),
EmptyModifier(&'static str),
}Expand description
Error returned when an EngineKey cannot be parsed from a
string slice.
Variants§
Empty
The supplied string was empty.
MissingTargetClassSeparator
The string was missing the : separator that delimits the
engine (and optional version / tls_profile) from the
target class.
UnknownEngine(String)
The engine component did not match any VendorId label.
UnknownTargetClass(String)
The target class component did not match any
TargetClass label.
EmptyModifier(&'static str)
The TLS profile or version component was empty after the
+ or / separator.
Trait Implementations§
Source§impl Clone for EngineKeyParseError
impl Clone for EngineKeyParseError
Source§fn clone(&self) -> EngineKeyParseError
fn clone(&self) -> EngineKeyParseError
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 EngineKeyParseError
impl Debug for EngineKeyParseError
Source§impl Display for EngineKeyParseError
impl Display for EngineKeyParseError
impl Eq for EngineKeyParseError
Source§impl Error for EngineKeyParseError
impl Error for EngineKeyParseError
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 EngineKeyParseError
impl PartialEq for EngineKeyParseError
Source§fn eq(&self, other: &EngineKeyParseError) -> bool
fn eq(&self, other: &EngineKeyParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EngineKeyParseError
Auto Trait Implementations§
impl Freeze for EngineKeyParseError
impl RefUnwindSafe for EngineKeyParseError
impl Send for EngineKeyParseError
impl Sync for EngineKeyParseError
impl Unpin for EngineKeyParseError
impl UnsafeUnpin for EngineKeyParseError
impl UnwindSafe for EngineKeyParseError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.