pub enum OnCreation {
Move(String),
SymLink(String),
Prevent,
}
Expand description
Additional actions to take on creation of the device node
Variants§
Move(String)
Moves/renames the device. If the path ends with /
then the name will be stay the same
SymLink(String)
Same as OnCreation::Move
but also creates a symlink in /dev/
to the
renamed/moved device
Prevent
Prevents the creation of the device node
Trait Implementations§
Source§impl Clone for OnCreation
impl Clone for OnCreation
Source§fn clone(&self) -> OnCreation
fn clone(&self) -> OnCreation
Returns a copy 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 OnCreation
impl Debug for OnCreation
Source§impl PartialEq for OnCreation
impl PartialEq for OnCreation
impl StructuralPartialEq for OnCreation
Auto Trait Implementations§
impl Freeze for OnCreation
impl RefUnwindSafe for OnCreation
impl Send for OnCreation
impl Sync for OnCreation
impl Unpin for OnCreation
impl UnwindSafe for OnCreation
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