Struct win_etw_provider::GUID
source · #[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: u32
Contains bytes 0-3 (inclusive) of the GUID.
data2: u16
Contains bytes 4-5 (inclusive) of the GUID.
data3: u16
Contains bytes 6-7 (inclusive) of the GUID.
data4: [u8; 8]
Contains bytes 8-15 (inclusive) of the GUID.
Trait Implementations§
source§impl AsBytes for GUID
impl AsBytes for GUID
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§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moresource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes
as a &[Self]
with length
equal to count
without copying. Read moresource§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moresource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moresource§impl FromZeroes for GUID
impl FromZeroes for GUID
source§impl Ord for GUID
impl Ord for GUID
source§impl PartialEq for GUID
impl PartialEq for GUID
source§impl PartialOrd for GUID
impl PartialOrd for GUID
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for GUID
impl StructuralEq for GUID
impl StructuralPartialEq for GUID
Auto Trait Implementations§
impl RefUnwindSafe for GUID
impl Send for GUID
impl Sync for GUID
impl Unpin for GUID
impl UnwindSafe for GUID
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