pub struct Sector {
pub offset: u64,
pub header: D88_SectorHdr,
pub data: Vec<u8>,
}
Expand description
Fields§
§offset: u64
§header: D88_SectorHdr
§data: Vec<u8>
Implementations§
Source§impl Sector
impl Sector
Sourcepub fn preset(
&mut self,
reader: &mut BufReader<File>,
offset: u64,
) -> Result<u64, ()>
pub fn preset( &mut self, reader: &mut BufReader<File>, offset: u64, ) -> Result<u64, ()>
Read Sector
§Argument
reader
&mut BufReaderstd::fs::File
§Return
- Ok(usize) Sector Data Size (with Sector Header)
- Err(())
pub fn get_side(&self) -> String
pub fn get_sector(&self) -> String
pub fn get_sector_size(&self) -> String
pub fn get_num_of_sector(&self) -> String
pub fn get_status(&self) -> String
pub fn get_density(&self) -> String
pub fn get_mark(&self) -> String
pub fn get_data_size(&self) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sector
impl RefUnwindSafe for Sector
impl Send for Sector
impl Sync for Sector
impl Unpin for Sector
impl UnwindSafe for Sector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more