pub enum DetectVirtualPackageError {
ParseLinuxVersion(ParseLinuxVersionError),
ParseMacOsVersion(ParseOsxVersionError),
DetectLibC(DetectLibCError),
}Expand description
An error that might be returned by VirtualPackage::current.
Variants§
ParseLinuxVersion(ParseLinuxVersionError)
ParseMacOsVersion(ParseOsxVersionError)
DetectLibC(DetectLibCError)
Trait Implementations§
source§impl Debug for DetectVirtualPackageError
impl Debug for DetectVirtualPackageError
source§impl Display for DetectVirtualPackageError
impl Display for DetectVirtualPackageError
source§impl Error for DetectVirtualPackageError
impl Error for DetectVirtualPackageError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<DetectLibCError> for DetectVirtualPackageError
impl From<DetectLibCError> for DetectVirtualPackageError
source§fn from(source: DetectLibCError) -> Self
fn from(source: DetectLibCError) -> Self
Converts to this type from the input type.
source§impl From<ParseLinuxVersionError> for DetectVirtualPackageError
impl From<ParseLinuxVersionError> for DetectVirtualPackageError
source§fn from(source: ParseLinuxVersionError) -> Self
fn from(source: ParseLinuxVersionError) -> Self
Converts to this type from the input type.
source§impl From<ParseOsxVersionError> for DetectVirtualPackageError
impl From<ParseOsxVersionError> for DetectVirtualPackageError
source§fn from(source: ParseOsxVersionError) -> Self
fn from(source: ParseOsxVersionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for DetectVirtualPackageError
impl Send for DetectVirtualPackageError
impl Sync for DetectVirtualPackageError
impl Unpin for DetectVirtualPackageError
impl !UnwindSafe for DetectVirtualPackageError
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