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]

[src]

Create a new Segment with given attributes

Trait Implementations

impl Debug for Segment
[src]

[src]

Formats the value using the given formatter.

impl Clone for Segment
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more