pub struct OciDevice {
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
OCI linux device entry.
Spec: https://github.com/opencontainers/runtime-spec/blob/main/config-linux.md#devices
Fields§
§device_type: StringDevice type: “c” (char), “b” (block), “u” (unbuffered), “p” (FIFO)
path: StringDevice path inside the container
major: Option<i64>Major number
minor: Option<i64>Minor number
file_mode: Option<u32>File mode (permissions)
uid: Option<u32>UID of the device owner
gid: Option<u32>GID of the device owner
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OciDevice
impl<'de> Deserialize<'de> for OciDevice
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 OciDevice
impl RefUnwindSafe for OciDevice
impl Send for OciDevice
impl Sync for OciDevice
impl Unpin for OciDevice
impl UnsafeUnpin for OciDevice
impl UnwindSafe for OciDevice
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