#[repr(C)]pub struct GUID {
pub data1: u32,
pub data2: u16,
pub data3: u16,
pub data4: [u8; 8],
}Expand description
The Windows GUID
type.
win_etw_provider defines this type, rather than directly referencing (or re-exporting)
an equivalent type from other crates in order to minimize its dependencies. GUID has a well-
defined byte representation, so converting between different implementations of GUID is
not a problem.
Fields§
§data1: u32Contains bytes 0-3 (inclusive) of the GUID.
data2: u16Contains bytes 4-5 (inclusive) of the GUID.
data3: u16Contains bytes 6-7 (inclusive) of the GUID.
data4: [u8; 8]Contains bytes 8-15 (inclusive) of the GUID.
Trait Implementations§
Source§impl<'a> From<&'a GUID> for EventDataDescriptor<'a>
impl<'a> From<&'a GUID> for EventDataDescriptor<'a>
Source§fn from(value: &'a GUID) -> EventDataDescriptor<'a>
fn from(value: &'a GUID) -> EventDataDescriptor<'a>
Converts to this type from the input type.
Source§impl FromBytes for GUID
impl FromBytes for GUID
Source§impl Ord for GUID
impl Ord for GUID
Source§impl PartialOrd for GUID
impl PartialOrd for GUID
Source§impl TryFromBytes for GUID
impl TryFromBytes for GUID
Source§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,
Source§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,
Source§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 Eq for GUID
impl StructuralPartialEq for GUID
Auto Trait Implementations§
impl Freeze for GUID
impl RefUnwindSafe for GUID
impl Send for GUID
impl Sync for GUID
impl Unpin for GUID
impl UnwindSafe for GUID
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)