Struct WimHeader

Source
pub struct WimHeader {
Show 14 fields pub signature: [u8; 8], pub header_size: u32, pub format_version: u32, pub file_flags: u32, pub compressed_size: u32, pub guid: [u8; 16], pub segment_number: u16, pub total_segments: u16, pub image_count: u32, pub offset_table_resource: FileResourceEntry, pub xml_data_resource: FileResourceEntry, pub boot_metadata_resource: FileResourceEntry, pub bootable_image_index: u32, pub integrity_resource: FileResourceEntry,
}
Expand description

WIM 文件头结构体 (WIMHEADER_V1_PACKED) 总大小:204 字节

Fields§

§signature: [u8; 8]

文件签名 “MSWIM\x00\x00\x00”

§header_size: u32

文件头大小

§format_version: u32

格式版本

§file_flags: u32

文件标志

§compressed_size: u32

压缩文件大小

§guid: [u8; 16]

唯一标识符 (GUID)

§segment_number: u16

段号

§total_segments: u16

段总数

§image_count: u32

镜像数量

§offset_table_resource: FileResourceEntry

偏移表文件资源

§xml_data_resource: FileResourceEntry

XML 数据文件资源

§boot_metadata_resource: FileResourceEntry

引导元数据文件资源

§bootable_image_index: u32

可引导镜像索引

§integrity_resource: FileResourceEntry

完整性数据文件资源

Trait Implementations§

Source§

impl Clone for WimHeader

Source§

fn clone(&self) -> WimHeader

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WimHeader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for WimHeader

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more