pub struct MessageType(/* private fields */);std only.Expand description
Identifies an HDF5 object header message type.
Every u16 is a valid MessageType, so an identifier that this crate does not recognize
remains representable without losing its raw value. Recognized identifiers are exposed as
associated constants such as Self::DATASPACE.
MessageType is carried by Error::MissingMessage. Its
transparent representation gives it the same size, alignment, and ABI as u16.
The format specification calls the on-disk value the “Header Message Type” and defines its values in “Data Object Header Messages” of the format specification, version 4.0.
Implementations§
Source§impl MessageType
impl MessageType
Sourcepub const FILL_VALUE_OLD: Self
pub const FILL_VALUE_OLD: Self
Identifies a fill value encoded in the original fill-value message format.
Sourcepub const FILL_VALUE: Self
pub const FILL_VALUE: Self
Identifies the value used to fill unwritten dataset elements.
Sourcepub const EXTERNAL_DATA_FILES: Self
pub const EXTERNAL_DATA_FILES: Self
Identifies dataset data stored in files outside the HDF5 file.
The message lists the external files and the portions of those files used for the dataset. This crate does not follow external files and rejects a dataset that uses them.
H5Pset_external configures this storage in the C library. The message is defined in
“The Data Storage - External Data Files Message” of the
format specification, version 4.0.
Sourcepub const DATA_LAYOUT: Self
pub const DATA_LAYOUT: Self
Identifies how a dataset’s raw data is stored.
Sourcepub const GROUP_INFO: Self
pub const GROUP_INFO: Self
Identifies storage parameters for a group.
Sourcepub const FILTER_PIPELINE: Self
pub const FILTER_PIPELINE: Self
Identifies the filter pipeline applied to a dataset’s raw data.
Sourcepub const SHARED_MESSAGE_TABLE: Self
pub const SHARED_MESSAGE_TABLE: Self
Identifies the table used to locate shared object header messages.
Sourcepub const OBJECT_HEADER_CONTINUATION: Self
pub const OBJECT_HEADER_CONTINUATION: Self
Identifies a block that contains additional object header messages.
Sourcepub const SYMBOL_TABLE: Self
pub const SYMBOL_TABLE: Self
Identifies the symbol-table storage used by an old-style group.
Sourcepub const OBJECT_MODIFICATION_TIME: Self
pub const OBJECT_MODIFICATION_TIME: Self
Identifies the last modification time of an object.
Sourcepub const B_TREE_K_VALUES: Self
pub const B_TREE_K_VALUES: Self
Identifies non-default B-tree K values stored with an object.
Sourcepub const ATTRIBUTE_INFO: Self
pub const ATTRIBUTE_INFO: Self
Identifies the storage and indexing information for densely stored attributes.
Sourcepub const OBJECT_REFERENCE_COUNT: Self
pub const OBJECT_REFERENCE_COUNT: Self
Identifies the number of hard links that point to an object.
Sourcepub const FILE_SPACE_INFO: Self
pub const FILE_SPACE_INFO: Self
Identifies the information used to manage free space in the file.
Source§impl MessageType
impl MessageType
Sourcepub const fn from_u16(value: u16) -> Self
pub const fn from_u16(value: u16) -> Self
Constructs a message type without interpreting the raw identifier.
Every u16 is accepted. Use Self::is_known or Self::unknown_id when the
distinction between recognized and unrecognized identifiers matters.
Sourcepub const fn is_unknown(self) -> bool
pub const fn is_unknown(self) -> bool
Returns whether this crate does not recognize the message type.
An unrecognized identifier can still be defined by the HDF5 specification. It has no associated symbolic name in this crate.
Sourcepub const fn unknown_id(self) -> Option<u16>
pub const fn unknown_id(self) -> Option<u16>
Returns the raw identifier when this crate does not recognize the message type.
Returns None when Self::is_known is true.
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more