Struct devicemapper::Segment [] [src]

pub struct Segment {
    pub start: Sectors,
    pub length: Sectors,
    pub device: Device,
}

struct to represent a continuous set of sectors on a disk

Fields

The offset into the device where this segment starts.

The length of the segment.

The device the segment is within.

Methods

impl Segment
[src]

Create a new Segment with given attributes

Trait Implementations

impl Debug for Segment
[src]

Formats the value using the given formatter.