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
start: Sectors
The offset into the device where this segment starts.
length: Sectors
The length of the segment.
device: Device
The device the segment is within.
Methods
impl Segment[src]
fn new(device: Device, start: Sectors, length: Sectors) -> Segment[src]
Create a new Segment with given attributes