gpt

Trait DiskDevice

Source
pub trait DiskDevice:
    Read
    + Write
    + Seek
    + Debug { }
Expand description

A generic device that we can read/write partitions from/to.

Implementors§

Source§

impl<T> DiskDevice for T
where T: Read + Write + Seek + Debug,

Implement the DiskDevice trait for anything that meets the requirements, e.g., std::fs::File