pub struct Error {
pub current_version: WSLVersion,
pub required_version: WSLVersion,
}Expand description
Represents an error when the current WSL version is unsupported.
This error is returned when the WSL version being used does not satisfy the required version for a plugin.
§Fields
current_version: The current WSL version.required_version: The required WSL version.
Fields§
§current_version: WSLVersionThe current version of WSL.
required_version: WSLVersionThe required version of WSL.
Implementations§
Source§impl Error
impl Error
pub const WSL_E_PLUGIN_REQUIRES_UPDATE: HRESULT
Sourcepub const fn new(
current_version: WSLVersion,
required_version: WSLVersion,
) -> Self
pub const fn new( current_version: WSLVersion, required_version: WSLVersion, ) -> Self
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<Error> for Error
impl From<Error> for Error
Source§fn from(value: Error) -> Self
fn from(value: Error) -> Self
Converts the Error into a windows_core::Error.
This implementation creates a windows_core::Error with the Error::WSL_E_PLUGIN_REQUIRES_UPDATE code.
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(source: RequireUpdateError) -> Self
fn from(source: RequireUpdateError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for Error
impl From<Error> for Error
Source§fn from(value: RequireUpdateError) -> Self
fn from(value: RequireUpdateError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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