pub struct BlockHeader {
pub vendor_id: u32,
pub descriptor_type: u32,
pub version_number: u16,
}Expand description
DFD block header, containing what type and version of block.
Implementations can skip blocks with unrecognized headers, allowing unknown data to be ignored.
Fields§
§vendor_id: u3217-bit organization identifier. 0 is Khronos. PCI SIG IDs use bits 0–15 with bit 16
clear; other IDs are assigned by Khronos starting at 65536.
descriptor_type: u3215-bit vendor-defined identifier distinguishing between data representations.
version_number: u16Vendor-defined version, intended for backwards-compatible updates to a descriptor block.
Implementations§
Source§impl BlockHeader
impl BlockHeader
Trait Implementations§
Source§impl Clone for BlockHeader
impl Clone for BlockHeader
Source§fn clone(&self) -> BlockHeader
fn clone(&self) -> BlockHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BlockHeader
Source§impl Debug for BlockHeader
impl Debug for BlockHeader
impl Eq for BlockHeader
Source§impl PartialEq for BlockHeader
impl PartialEq for BlockHeader
Source§fn eq(&self, other: &BlockHeader) -> bool
fn eq(&self, other: &BlockHeader) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlockHeader
Auto Trait Implementations§
impl Freeze for BlockHeader
impl RefUnwindSafe for BlockHeader
impl Send for BlockHeader
impl Sync for BlockHeader
impl Unpin for BlockHeader
impl UnsafeUnpin for BlockHeader
impl UnwindSafe for BlockHeader
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