pub enum UEventAction {
Add,
Remove,
Change,
Move,
Online,
Offline,
Bind,
Unbind,
Other,
}Expand description
Action portée par un message uevent (sous-ensemble typé + repli).
Variants§
Add
add — apparition d’un périphérique.
Remove
remove — disparition.
Change
change — changement d’état.
Move
move — déplacement dans l’arbre sysfs.
Online
online — mise en ligne.
Offline
offline — mise hors ligne.
Bind
bind — pilote lié.
Unbind
unbind — pilote délié.
Other
Action non reconnue.
Implementations§
Source§impl UEventAction
impl UEventAction
Sourcepub fn from_bytes(bytes: &[u8]) -> Self
pub fn from_bytes(bytes: &[u8]) -> Self
Mappe les octets bruts d’une action vers la variante typée.
Trait Implementations§
Source§impl Clone for UEventAction
impl Clone for UEventAction
Source§fn clone(&self) -> UEventAction
fn clone(&self) -> UEventAction
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 UEventAction
Source§impl Debug for UEventAction
impl Debug for UEventAction
impl Eq for UEventAction
Source§impl PartialEq for UEventAction
impl PartialEq for UEventAction
impl StructuralPartialEq for UEventAction
Auto Trait Implementations§
impl Freeze for UEventAction
impl RefUnwindSafe for UEventAction
impl Send for UEventAction
impl Sync for UEventAction
impl Unpin for UEventAction
impl UnsafeUnpin for UEventAction
impl UnwindSafe for UEventAction
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