#[repr(u32)]pub enum WSLUserConfigurationFlags {
CustomKernel = 1,
CustomKernelCommandLine = 2,
}Available on crate feature
enumflags2 only.Expand description
Represents the user configuration flags for Windows Subsystem for Linux (WSL) as enumflags2
These flags are used to customize the behavior of WSL instances based on user configuration. The values correspond to the definitions in the WSL Plugin API provided by Microsoft.
§Variants
CustomKernel: Indicates that the WSL instance use use a custom Linux kernel instead of the default kernel.CustomKernelCommandLine: Specifies that the WSL instance use use a custom kernel command-line during boot.
§References
See WSL Configuration for additional details on WSL user configurations.
Variants§
CustomKernel = 1
A custom Linux kernel is used for the WSL instance.
CustomKernelCommandLine = 2
A custom kernel command-line is used for the WSL instance.
Trait Implementations§
Source§impl BitAnd for WSLUserConfigurationFlags
impl BitAnd for WSLUserConfigurationFlags
Source§impl BitFlag for WSLUserConfigurationFlags
impl BitFlag for WSLUserConfigurationFlags
Source§fn empty() -> BitFlags<Self>
fn empty() -> BitFlags<Self>
Create a
BitFlags with no flags set (in other words, with a value of 0). Read moreSource§fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
fn from_bits(bits: Self::Numeric) -> Result<BitFlags<Self>, FromBitsError<Self>>
Create a
BitFlags if the raw value provided does not contain
any illegal flags. Read moreSource§fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
fn from_bits_truncate(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags from an underlying bitwise value. If any
invalid bits are set, ignore them. Read moreSource§unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
unsafe fn from_bits_unchecked(bits: Self::Numeric) -> BitFlags<Self>
Create a
BitFlags unsafely, without checking if the bits form
a valid bit pattern for the type. Read moreSource§impl BitOr for WSLUserConfigurationFlags
impl BitOr for WSLUserConfigurationFlags
Source§impl BitXor for WSLUserConfigurationFlags
impl BitXor for WSLUserConfigurationFlags
Source§impl Clone for WSLUserConfigurationFlags
impl Clone for WSLUserConfigurationFlags
Source§fn clone(&self) -> WSLUserConfigurationFlags
fn clone(&self) -> WSLUserConfigurationFlags
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 WSLUserConfigurationFlags
impl Debug for WSLUserConfigurationFlags
Source§impl Hash for WSLUserConfigurationFlags
impl Hash for WSLUserConfigurationFlags
Source§impl Not for WSLUserConfigurationFlags
impl Not for WSLUserConfigurationFlags
Source§impl RawBitFlags for WSLUserConfigurationFlags
impl RawBitFlags for WSLUserConfigurationFlags
impl Copy for WSLUserConfigurationFlags
impl Eq for WSLUserConfigurationFlags
impl StructuralPartialEq for WSLUserConfigurationFlags
Auto Trait Implementations§
impl Freeze for WSLUserConfigurationFlags
impl RefUnwindSafe for WSLUserConfigurationFlags
impl Send for WSLUserConfigurationFlags
impl Sync for WSLUserConfigurationFlags
impl Unpin for WSLUserConfigurationFlags
impl UnsafeUnpin for WSLUserConfigurationFlags
impl UnwindSafe for WSLUserConfigurationFlags
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