#[repr(transparent)]pub struct GhcbProtocolVersion(pub u16);Tuple Fields§
§0: u16Implementations§
Source§impl GhcbProtocolVersion
impl GhcbProtocolVersion
pub const V1: GhcbProtocolVersion
pub const V2: GhcbProtocolVersion
Trait Implementations§
Source§impl Clone for GhcbProtocolVersion
impl Clone for GhcbProtocolVersion
Source§fn clone(&self) -> GhcbProtocolVersion
fn clone(&self) -> GhcbProtocolVersion
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GhcbProtocolVersion
impl Debug for GhcbProtocolVersion
Source§impl FromBytes for GhcbProtocolVersionwhere
u16: FromBytes,
impl FromBytes for GhcbProtocolVersionwhere
u16: FromBytes,
Source§impl FromZeros for GhcbProtocolVersionwhere
u16: FromZeros,
impl FromZeros for GhcbProtocolVersionwhere
u16: FromZeros,
§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes. Read more§fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
fn new_box_zeroed() -> Result<Box<Self>, AllocError>where
Self: Sized,
Creates a
Box<Self> from zeroed bytes. Read more§fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Result<Vec<Self>, AllocError>where
Self: Sized,
Creates a
Vec<Self> from zeroed bytes. Read moreSource§impl Hash for GhcbProtocolVersion
impl Hash for GhcbProtocolVersion
Source§impl IntoBytes for GhcbProtocolVersionwhere
u16: IntoBytes,
impl IntoBytes for GhcbProtocolVersionwhere
u16: IntoBytes,
§fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8] ⓘwhere
Self: FromBytes,
Gets the bytes of this value mutably. Read more
Source§impl Ord for GhcbProtocolVersion
impl Ord for GhcbProtocolVersion
Source§fn cmp(&self, other: &GhcbProtocolVersion) -> Ordering
fn cmp(&self, other: &GhcbProtocolVersion) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GhcbProtocolVersion
impl PartialEq for GhcbProtocolVersion
Source§impl PartialOrd for GhcbProtocolVersion
impl PartialOrd for GhcbProtocolVersion
Source§impl TryFromBytes for GhcbProtocolVersionwhere
u16: TryFromBytes,
impl TryFromBytes for GhcbProtocolVersionwhere
u16: TryFromBytes,
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
impl Copy for GhcbProtocolVersion
impl Eq for GhcbProtocolVersion
impl StructuralPartialEq for GhcbProtocolVersion
Auto Trait Implementations§
impl Freeze for GhcbProtocolVersion
impl RefUnwindSafe for GhcbProtocolVersion
impl Send for GhcbProtocolVersion
impl Sync for GhcbProtocolVersion
impl Unpin for GhcbProtocolVersion
impl UnsafeUnpin for GhcbProtocolVersion
impl UnwindSafe for GhcbProtocolVersion
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