Skip to main content

MasterBootRecordReadExt

Trait MasterBootRecordReadExt 

Source
pub trait MasterBootRecordReadExt: Sized {
    // Required method
    fn read_from<R: Read>(reader: &mut R) -> Result<Self>;
}
Available on crate feature read only.
Expand description

Extension trait for reading MasterBootRecord from I/O sources.

Required Methods§

Source

fn read_from<R: Read>(reader: &mut R) -> Result<Self>

Reads an MBR from the beginning of a reader.

§Errors

Returns an error if reading fails or if the MBR signature is invalid.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl MasterBootRecordReadExt for MasterBootRecord

Available on crate feature sync only.