pub struct Adb {
pub path: PathBuf,
pub adb_offset: u64,
pub adb_block_size: u64,
pub adb_block_count: usize,
pub adb_reloff_blocknum: Option<u64>,
pub adb_block_num: u64,
pub adb_reloff_pattern: Option<u64>,
pub adb_pattern_data: Vec<u8>,
}Expand description
An Application Data Block (ADB) pattern, mirroring struct tc_adb.
Fields§
§path: PathBuf§adb_offset: u64§adb_block_size: u64§adb_block_count: usizeBlocks to write.
adb_reloff_blocknum: Option<u64>Relative offset within a block to write the ADBN; None = no ADBN.
adb_block_num: u64ADBN of the first ADB.
adb_reloff_pattern: Option<u64>Relative offset within a block to write the pattern; None = no
pattern. The pattern bytes are adb_pattern_data.
adb_pattern_data: Vec<u8>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Adb
impl RefUnwindSafe for Adb
impl Send for Adb
impl Sync for Adb
impl Unpin for Adb
impl UnsafeUnpin for Adb
impl UnwindSafe for Adb
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