#[non_exhaustive]pub enum WSLVersionCapability {
DistributionInitPid,
DistributionRegisteredHook,
DistributionUnregisteredHook,
ExecuteBinaryInDistribution,
DistributionFlavor,
DistributionVersion,
}Expand description
WSL Plugin API capabilities that are only available from a specific API version.
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.
DistributionInitPid
Access to WSLDistributionInformation::InitPid (2.0.5).
DistributionRegisteredHook
Notification sent when a distribution is registered (2.1.2).
DistributionUnregisteredHook
Notification sent when a distribution is unregistered (2.1.2).
ExecuteBinaryInDistribution
Execute a command inside a specific user distribution (2.1.2).
DistributionFlavor
Access to the distribution flavor field (2.4.4).
DistributionVersion
Access to the distribution version field (2.4.4).
Implementations§
Source§impl WSLVersionCapability
impl WSLVersionCapability
Sourcepub const fn required_version(self) -> WSLVersion
pub const fn required_version(self) -> WSLVersion
Returns the minimum WSL Plugin API version required for this capability.
Trait Implementations§
Source§impl Clone for WSLVersionCapability
impl Clone for WSLVersionCapability
Source§fn clone(&self) -> WSLVersionCapability
fn clone(&self) -> WSLVersionCapability
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for WSLVersionCapability
Source§impl Debug for WSLVersionCapability
impl Debug for WSLVersionCapability
Source§impl Display for WSLVersionCapability
impl Display for WSLVersionCapability
impl Eq for WSLVersionCapability
Source§impl From<WSLVersionCapability> for RequirementDefinition
impl From<WSLVersionCapability> for RequirementDefinition
Source§fn from(value: WSLVersionCapability) -> Self
fn from(value: WSLVersionCapability) -> Self
Converts to this type from the input type.
Source§impl FromIterator<WSLVersionCapability> for RequirementDefinition
impl FromIterator<WSLVersionCapability> for RequirementDefinition
Source§fn from_iter<T: IntoIterator<Item = WSLVersionCapability>>(iter: T) -> Self
fn from_iter<T: IntoIterator<Item = WSLVersionCapability>>(iter: T) -> Self
Creates a value from an iterator. Read more
Source§impl Hash for WSLVersionCapability
impl Hash for WSLVersionCapability
Source§impl PartialEq for WSLVersionCapability
impl PartialEq for WSLVersionCapability
Source§fn eq(&self, other: &WSLVersionCapability) -> bool
fn eq(&self, other: &WSLVersionCapability) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WSLVersionCapability
Source§impl TryFrom<RequirementDefinition> for WSLVersionCapability
impl TryFrom<RequirementDefinition> for WSLVersionCapability
Source§type Error = RequirementDefinition
type Error = RequirementDefinition
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for WSLVersionCapability
impl RefUnwindSafe for WSLVersionCapability
impl Send for WSLVersionCapability
impl Sync for WSLVersionCapability
impl Unpin for WSLVersionCapability
impl UnsafeUnpin for WSLVersionCapability
impl UnwindSafe for WSLVersionCapability
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