Skip to main content

PrimaryVolumeDescriptor

Struct PrimaryVolumeDescriptor 

Source
#[repr(C)]
pub struct PrimaryVolumeDescriptor {
Show 31 fields pub header: VolumeDescriptorHeader, pub unused0: u8, pub system_identifier: IsoStrA<32>, pub volume_identifier: IsoStrD<32>, pub unused1: [u8; 8], pub volume_space_size: U32LsbMsb, pub unused2: [u8; 32], pub volume_set_size: U16LsbMsb, pub volume_sequence_number: U16LsbMsb, pub logical_block_size: U16LsbMsb, pub path_table_size: U32LsbMsb, pub type_l_path_table: U32<LittleEndian>, pub opt_type_l_path_table: U32<LittleEndian>, pub type_m_path_table: U32<BigEndian>, pub opt_type_m_path_table: U32<BigEndian>, pub dir_record: RootDirectoryEntry, pub volume_set_identifier: IsoStrD<128>, pub publisher_identifier: IsoStrA<128>, pub preparer_identifier: IsoStrA<128>, pub application_identifier: IsoStrA<128>, pub copyright_file_identifier: IsoStrD<37>, pub abstract_file_identifier: IsoStrD<37>, pub bibliographic_file_identifier: IsoStrD<37>, pub creation_date: DecDateTime, pub modification_date: DecDateTime, pub expiration_date: DecDateTime, pub effective_date: DecDateTime, pub file_structure_version: u8, pub unused3: u8, pub app_data: [u8; 512], pub reserved: [u8; 653],
}
Available on crate feature sync only.
Expand description

Primary Volume Descriptor (ECMA-119 8.4)

@hadris-spec ECMA-119:8.4 @hadris-compliance partial @hadris-note Core fields are modeled, but reserved fields, character sets, redundant endian values, and semantic constraints are not all validated. @hadris-tests comprehensive_iso::test_pvd_standard_identifier @hadris-fuzz iso_read

Fields§

§header: VolumeDescriptorHeader

The header field.

§unused0: u8

The unused0 field.

§system_identifier: IsoStrA<32>

The system_identifier field.

§volume_identifier: IsoStrD<32>

The volume_identifier field.

§unused1: [u8; 8]

The unused1 field.

§volume_space_size: U32LsbMsb

The volume_space_size field.

§unused2: [u8; 32]

The unused2 field.

§volume_set_size: U16LsbMsb

The volume_set_size field.

§volume_sequence_number: U16LsbMsb

The volume_sequence_number field.

§logical_block_size: U16LsbMsb

The logical_block_size field.

§path_table_size: U32LsbMsb

The path_table_size field.

§type_l_path_table: U32<LittleEndian>

The type_l_path_table field.

§opt_type_l_path_table: U32<LittleEndian>

The opt_type_l_path_table field.

§type_m_path_table: U32<BigEndian>

The type_m_path_table field.

§opt_type_m_path_table: U32<BigEndian>

The opt_type_m_path_table field.

§dir_record: RootDirectoryEntry

The dir_record field.

§volume_set_identifier: IsoStrD<128>

The volume_set_identifier field.

§publisher_identifier: IsoStrA<128>

The publisher_identifier field.

§preparer_identifier: IsoStrA<128>

The preparer_identifier field.

§application_identifier: IsoStrA<128>

The application_identifier field.

§copyright_file_identifier: IsoStrD<37>

The copyright_file_identifier field.

§abstract_file_identifier: IsoStrD<37>

The abstract_file_identifier field.

§bibliographic_file_identifier: IsoStrD<37>

The bibliographic_file_identifier field.

§creation_date: DecDateTime

The creation_date field.

§modification_date: DecDateTime

The modification_date field.

§expiration_date: DecDateTime

The expiration_date field.

§effective_date: DecDateTime

The effective_date field.

§file_structure_version: u8

The file_structure_version field.

§unused3: u8

The unused3 field.

§app_data: [u8; 512]

The app_data field.

§reserved: [u8; 653]

The reserved field.

Implementations§

Source§

impl PrimaryVolumeDescriptor

Source

pub fn new(name: &str, sectors: u32) -> Self

Performs the new operation.

Trait Implementations§

Source§

impl Clone for PrimaryVolumeDescriptor

Source§

fn clone(&self) -> PrimaryVolumeDescriptor

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for PrimaryVolumeDescriptor

Source§

impl Debug for PrimaryVolumeDescriptor

Source§

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

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

impl Pod for PrimaryVolumeDescriptor

Source§

impl Zeroable for PrimaryVolumeDescriptor

Source§

fn zeroed() -> Self

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> AnyBitPattern for T
where T: Pod,

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CheckedBitPattern for T
where T: AnyBitPattern,

Source§

type Bits = T

Self must have the same layout as the specified Bits except for the possible invalid bit patterns being checked during is_valid_bit_pattern.
Source§

fn is_valid_bit_pattern(_bits: &T) -> bool

If this function returns true, then it must be valid to reinterpret bits as &Self.
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> MaybePod for T
where T: Pod + Zeroable,

Source§

impl<T> NoUninit for T
where T: Pod,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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