pub enum NginxVersionParseError {
InvalidFormat(String),
InvalidComponent(String),
}Expand description
Error returned by NginxVersion::parse.
Variants§
InvalidFormat(String)
The string did not have the expected three dot-separated components.
InvalidComponent(String)
One of the three components was not a valid u32.
Trait Implementations§
Source§impl Clone for NginxVersionParseError
impl Clone for NginxVersionParseError
Source§fn clone(&self) -> NginxVersionParseError
fn clone(&self) -> NginxVersionParseError
Returns a duplicate of the value. Read more
1.0.0 · 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 NginxVersionParseError
impl Debug for NginxVersionParseError
Source§impl Display for NginxVersionParseError
impl Display for NginxVersionParseError
Source§impl Error for NginxVersionParseError
impl Error for NginxVersionParseError
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 NginxVersionParseError
impl PartialEq for NginxVersionParseError
impl Eq for NginxVersionParseError
impl StructuralPartialEq for NginxVersionParseError
Auto Trait Implementations§
impl Freeze for NginxVersionParseError
impl RefUnwindSafe for NginxVersionParseError
impl Send for NginxVersionParseError
impl Sync for NginxVersionParseError
impl Unpin for NginxVersionParseError
impl UnsafeUnpin for NginxVersionParseError
impl UnwindSafe for NginxVersionParseError
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
Checks if this value is equivalent to the given key. Read more