pub struct Device {
pub device_type: String,
pub path: String,
pub major: Option<i64>,
pub minor: Option<i64>,
pub file_mode: Option<u32>,
pub uid: Option<u32>,
pub gid: Option<u32>,
}Expand description
Device configuration.
Fields§
§device_type: StringDevice type (c, b, p, u).
path: StringDevice path in container.
major: Option<i64>Major device number.
minor: Option<i64>Minor device number.
file_mode: Option<u32>File mode.
uid: Option<u32>Owner UID.
gid: Option<u32>Owner GID.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Device
impl<'de> Deserialize<'de> for Device
Source§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
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnsafeUnpin for Device
impl UnwindSafe for Device
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