Struct ocf::linux::Device [] [src]

pub struct Device {
    pub path: String,
    pub kind: u8,
    pub major: u64,
    pub minor: u64,
    pub cgroup_permissions: Option<String>,
    pub mode: u32,
    pub uid: u32,
    pub gid: u32,
}

Fields

path
kind
major
minor
cgroup_permissions
mode
uid
gid

Methods

impl Device

fn path(&self) -> &str

fn kind(&self) -> u8

fn major(&self) -> u64

fn minor(&self) -> u64

fn cgroup_permissions(&self) -> Option<&str>

fn mode(&self) -> u32

fn uid(&self) -> u32

fn gid(&self) -> u32

Trait Implementations

impl Deserialize for Device

fn deserialize<__D>(deserializer: &mut __D) -> Result<Device, __D::Error> where __D: Deserializer

impl Serialize for Device

fn serialize<__S>(&self, serializer: &mut __S) -> Result<(), __S::Error> where __S: Serializer

Derived Implementations

impl Debug for Device

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl Clone for Device

fn clone(&self) -> Device

fn clone_from(&mut self, source: &Self)