#[non_exhaustive]pub enum ActivateError {
BackendUnavailable(String),
IncompatibleFeatures(&'static str),
Other(String),
}Expand description
Errors a device can surface during activation. Activation runs once per
device, on the driver’s Status |= DRIVER_OK write.
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.
Device backend (host file, socket) is unavailable.
IncompatibleFeatures(&'static str)
Driver acked features that are mutually exclusive with the device’s configured backend.
Other(String)
Device-specific activation error; carries a free-form message so device modules don’t need their own error subtypes.
Trait Implementations§
Source§impl Debug for ActivateError
impl Debug for ActivateError
Source§impl Display for ActivateError
impl Display for ActivateError
Source§impl Error for ActivateError
impl Error for ActivateError
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<ActivateError> for VirtioError
impl From<ActivateError> for VirtioError
Source§fn from(source: ActivateError) -> Self
fn from(source: ActivateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ActivateError
impl RefUnwindSafe for ActivateError
impl Send for ActivateError
impl Sync for ActivateError
impl Unpin for ActivateError
impl UnsafeUnpin for ActivateError
impl UnwindSafe for ActivateError
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