#[non_exhaustive]pub struct SectionInfo {
pub segment_index: usize,
pub kind: SectionKind,
pub descriptor_offset: u64,
pub data_offset: u64,
pub data_size: u64,
pub linked_descriptor_offset: u64,
pub data_flags: u32,
}Expand description
A section’s location in its original segment. Payloads are not retained. These are the descriptors accepted during opening, not a fresh integrity check.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.segment_index: usizeZero-based segment index, resolving through Image::segment_filename.
kind: SectionKindOriginal section identifier.
descriptor_offset: u64Descriptor byte offset within the segment.
data_offset: u64Payload byte offset within the segment.
data_size: u64Payload byte length, excluding descriptor and padding.
linked_descriptor_offset: u64EWF1 next descriptor or EWF2 previous descriptor offset.
data_flags: u32Raw EWF2 data flags; zero for EWF1.
Trait Implementations§
Source§impl Clone for SectionInfo
impl Clone for SectionInfo
Source§impl Debug for SectionInfo
impl Debug for SectionInfo
impl Eq for SectionInfo
Source§impl PartialEq for SectionInfo
impl PartialEq for SectionInfo
Source§impl Serialize for SectionInfo
impl Serialize for SectionInfo
impl StructuralPartialEq for SectionInfo
Auto Trait Implementations§
impl Freeze for SectionInfo
impl RefUnwindSafe for SectionInfo
impl Send for SectionInfo
impl Sync for SectionInfo
impl Unpin for SectionInfo
impl UnsafeUnpin for SectionInfo
impl UnwindSafe for SectionInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more