pub enum ActionType {
Add,
Remove,
Change,
Move,
Online,
Offline,
Bind,
Unbind,
}
Expand description
KObject action types
See kobject_action in include/linux/kobject.h
Variants§
Add
A new kobject is added
Remove
A kobject is removed
Change
the kobject changed its internal state
the env
contains kobject-specific information.
Move
the kobject is reparented as a result of kobject_move
the env
contains DEVPATH_OLD=<oldpath>
.
Online
The device is back online after successful device_offline
.
Offline
The device is ready to be hot-removed.
Bind
The device is bound to a driver.
Unbind
The device is not bound to its driver anymore.
Trait Implementations§
Source§impl Clone for ActionType
impl Clone for ActionType
Source§fn clone(&self) -> ActionType
fn clone(&self) -> ActionType
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 ActionType
impl Debug for ActionType
Source§impl FromStr for ActionType
impl FromStr for ActionType
Source§impl Hash for ActionType
impl Hash for ActionType
Source§impl PartialEq for ActionType
impl PartialEq for ActionType
impl Copy for ActionType
impl Eq for ActionType
impl StructuralPartialEq for ActionType
Auto Trait Implementations§
impl Freeze for ActionType
impl RefUnwindSafe for ActionType
impl Send for ActionType
impl Sync for ActionType
impl Unpin for ActionType
impl UnwindSafe for ActionType
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