Struct devicemapper::Device [] [src]

pub struct Device {
    pub major: u32,
    pub minor: u8,
}

A struct containing the device's major and minor numbers

Also allows conversion to/from a single 64bit value.

Fields

Device major number

Device minor number

Methods

impl Device
[src]

Returns the path in /dev that corresponds with the device number/devnode.

Get a string with the Device's major and minor numbers in ":" format.

Trait Implementations

impl Debug for Device
[src]

Formats the value using the given formatter.

impl PartialEq for Device
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Device
[src]

impl PartialOrd for Device
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Device
[src]

This method returns an Ordering between self and other. Read more

impl Clone for Device
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Device
[src]

impl Hash for Device
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl FromStr for Device
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

impl From<u64> for Device
[src]

Performs the conversion.