Enum KernelEventAction
#[non_exhaustive]pub enum KernelEventAction {
Add,
Remove,
Other(String),
}Expand description
The action of a kernel event.
This is the action key of a KernelEvent.
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.
Add
A kernel device appeared.
Remove
A kernel device disappeared.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl KernelEventAction
impl KernelEventAction
Trait Implementations§
§impl AsRef<str> for KernelEventAction
impl AsRef<str> for KernelEventAction
§impl Clone for KernelEventAction
impl Clone for KernelEventAction
§fn clone(&self) -> KernelEventAction
fn clone(&self) -> KernelEventAction
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 more§impl Debug for KernelEventAction
impl Debug for KernelEventAction
§impl<'de> Deserialize<'de> for KernelEventAction
impl<'de> Deserialize<'de> for KernelEventAction
§fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(__deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for KernelEventAction
impl Display for KernelEventAction
impl Eq for KernelEventAction
§impl From<&str> for KernelEventAction
impl From<&str> for KernelEventAction
§impl From<KernelEventAction> for Value<'static>
impl From<KernelEventAction> for Value<'static>
§fn from(__value: KernelEventAction) -> Self
fn from(__value: KernelEventAction) -> Self
Converts to this type from the input type.
§impl From<String> for KernelEventAction
impl From<String> for KernelEventAction
§impl FromStr for KernelEventAction
impl FromStr for KernelEventAction
§impl Hash for KernelEventAction
impl Hash for KernelEventAction
§impl PartialEq for KernelEventAction
impl PartialEq for KernelEventAction
§impl Serialize for KernelEventAction
impl Serialize for KernelEventAction
impl StructuralPartialEq for KernelEventAction
§impl TryFrom<OwnedValue> for KernelEventAction
impl TryFrom<OwnedValue> for KernelEventAction
§impl<'__a> TryFrom<Value<'__a>> for KernelEventAction
impl<'__a> TryFrom<Value<'__a>> for KernelEventAction
§impl Type for KernelEventAction
impl Type for KernelEventAction
Auto Trait Implementations§
impl Freeze for KernelEventAction
impl RefUnwindSafe for KernelEventAction
impl Send for KernelEventAction
impl Sync for KernelEventAction
impl Unpin for KernelEventAction
impl UnsafeUnpin for KernelEventAction
impl UnwindSafe for KernelEventAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.