Struct wasapi::Guid [−]
#[repr(C)]pub struct Guid { /* fields omitted */ }
Expand description
A globally unique identifier (GUID) used to identify COM and WinRT interfaces.
Implementations
impl Guid
impl Guid
pub const fn from_values(
data1: u32,
data2: u16,
data3: u16,
data4: [u8; 8]
) -> Guid
pub const fn from_values(
data1: u32,
data2: u16,
data3: u16,
data4: [u8; 8]
) -> Guid
Creates a Guid
with the given constant values.
pub const fn from_signature(signature: ConstBuffer) -> Guid
pub const fn from_signature(signature: ConstBuffer) -> Guid
Creates a Guid
for a “generic” WinRT type.
pub fn from_progid(progid: &str) -> Result<Guid, Error>
pub fn from_progid(progid: &str) -> Result<Guid, Error>
Looks up a CLSID in the registry using the CLSIDFromProgID function.
Trait Implementations
impl Abi for Guid
impl Abi for Guid
fn abi(&self) -> Self::Abi
fn abi(&self) -> Self::Abi
Casts the Rust object to its ABI type without copying the object.
fn set_abi(&mut self) -> *mut Self::Abi
fn set_abi(&mut self) -> *mut Self::Abi
Returns a pointer for setting the object’s value via an ABI call.
unsafe fn from_abi(abi: Self::Abi) -> Result<Self, Error>
unsafe fn from_abi(abi: Self::Abi) -> Result<Self, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(&mut Param<'_, Self>)
impl RuntimeType for Guid
impl RuntimeType for Guid
impl Copy for Guid
impl 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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<'a, T> IntoParam<'a, T> for T where
T: Abi,
impl<'a, T> IntoParam<'a, T> for T where
T: Abi,
pub fn into_param(self) -> Param<'a, T>
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more