pub struct IPortableDeviceValues(/* private fields */);

Implementations§

§

impl IPortableDeviceValues

pub unsafe fn GetCount(&self, pcelt: *const u32) -> Result<()>

pub unsafe fn GetAt( &self, index: u32, pkey: *mut PROPERTYKEY, pvalue: *mut PROPVARIANT ) -> Result<()>

pub unsafe fn SetValue( &self, key: *const PROPERTYKEY, pvalue: *const PROPVARIANT ) -> Result<()>

pub unsafe fn GetValue(&self, key: *const PROPERTYKEY) -> Result<PROPVARIANT>

pub unsafe fn SetStringValue<P0>( &self, key: *const PROPERTYKEY, value: P0 ) -> Result<()>
where P0: IntoParam<PCWSTR>,

pub unsafe fn GetStringValue(&self, key: *const PROPERTYKEY) -> Result<PWSTR>

pub unsafe fn SetUnsignedIntegerValue( &self, key: *const PROPERTYKEY, value: u32 ) -> Result<()>

pub unsafe fn GetUnsignedIntegerValue( &self, key: *const PROPERTYKEY ) -> Result<u32>

pub unsafe fn SetSignedIntegerValue( &self, key: *const PROPERTYKEY, value: i32 ) -> Result<()>

pub unsafe fn GetSignedIntegerValue( &self, key: *const PROPERTYKEY ) -> Result<i32>

pub unsafe fn SetUnsignedLargeIntegerValue( &self, key: *const PROPERTYKEY, value: u64 ) -> Result<()>

pub unsafe fn GetUnsignedLargeIntegerValue( &self, key: *const PROPERTYKEY ) -> Result<u64>

pub unsafe fn SetSignedLargeIntegerValue( &self, key: *const PROPERTYKEY, value: i64 ) -> Result<()>

pub unsafe fn GetSignedLargeIntegerValue( &self, key: *const PROPERTYKEY ) -> Result<i64>

pub unsafe fn SetFloatValue( &self, key: *const PROPERTYKEY, value: f32 ) -> Result<()>

pub unsafe fn GetFloatValue(&self, key: *const PROPERTYKEY) -> Result<f32>

pub unsafe fn SetErrorValue( &self, key: *const PROPERTYKEY, value: HRESULT ) -> Result<()>

pub unsafe fn GetErrorValue(&self, key: *const PROPERTYKEY) -> Result<HRESULT>

pub unsafe fn SetKeyValue( &self, key: *const PROPERTYKEY, value: *const PROPERTYKEY ) -> Result<()>

pub unsafe fn GetKeyValue( &self, key: *const PROPERTYKEY, pvalue: *mut PROPERTYKEY ) -> Result<()>

pub unsafe fn SetBoolValue<P0>( &self, key: *const PROPERTYKEY, value: P0 ) -> Result<()>
where P0: IntoParam<BOOL>,

pub unsafe fn GetBoolValue(&self, key: *const PROPERTYKEY) -> Result<BOOL>

pub unsafe fn SetIUnknownValue<P0>( &self, key: *const PROPERTYKEY, pvalue: P0 ) -> Result<()>
where P0: IntoParam<IUnknown>,

pub unsafe fn GetIUnknownValue( &self, key: *const PROPERTYKEY ) -> Result<IUnknown>

pub unsafe fn SetGuidValue( &self, key: *const PROPERTYKEY, value: *const GUID ) -> Result<()>

pub unsafe fn GetGuidValue(&self, key: *const PROPERTYKEY) -> Result<GUID>

pub unsafe fn SetBufferValue( &self, key: *const PROPERTYKEY, pvalue: &[u8] ) -> Result<()>

pub unsafe fn GetBufferValue( &self, key: *const PROPERTYKEY, ppvalue: *mut *mut u8, pcbvalue: *mut u32 ) -> Result<()>

pub unsafe fn SetIPortableDeviceValuesValue<P0>( &self, key: *const PROPERTYKEY, pvalue: P0 ) -> Result<()>
where P0: IntoParam<IPortableDeviceValues>,

pub unsafe fn GetIPortableDeviceValuesValue( &self, key: *const PROPERTYKEY ) -> Result<IPortableDeviceValues>

pub unsafe fn SetIPortableDevicePropVariantCollectionValue<P0>( &self, key: *const PROPERTYKEY, pvalue: P0 ) -> Result<()>

pub unsafe fn GetIPortableDevicePropVariantCollectionValue( &self, key: *const PROPERTYKEY ) -> Result<IPortableDevicePropVariantCollection>

pub unsafe fn SetIPortableDeviceKeyCollectionValue<P0>( &self, key: *const PROPERTYKEY, pvalue: P0 ) -> Result<()>
where P0: IntoParam<IPortableDeviceKeyCollection>,

pub unsafe fn GetIPortableDeviceKeyCollectionValue( &self, key: *const PROPERTYKEY ) -> Result<IPortableDeviceKeyCollection>

pub unsafe fn SetIPortableDeviceValuesCollectionValue<P0>( &self, key: *const PROPERTYKEY, pvalue: P0 ) -> Result<()>
where P0: IntoParam<IPortableDeviceValuesCollection>,

pub unsafe fn GetIPortableDeviceValuesCollectionValue( &self, key: *const PROPERTYKEY ) -> Result<IPortableDeviceValuesCollection>

pub unsafe fn RemoveValue(&self, key: *const PROPERTYKEY) -> Result<()>

pub unsafe fn CopyValuesFromPropertyStore<P0>(&self, pstore: P0) -> Result<()>
where P0: IntoParam<IPropertyStore>,

pub unsafe fn CopyValuesToPropertyStore<P0>(&self, pstore: P0) -> Result<()>
where P0: IntoParam<IPropertyStore>,

pub unsafe fn Clear(&self) -> Result<()>

Trait Implementations§

§

impl Clone for IPortableDeviceValues

§

fn clone(&self) -> IPortableDeviceValues

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Debug for IPortableDeviceValues

§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
§

impl From<&IPortableDeviceValues> for &IUnknown

§

fn from(value: &IPortableDeviceValues) -> Self

Converts to this type from the input type.
§

impl From<IPortableDeviceValues> for IUnknown

§

fn from(value: IPortableDeviceValues) -> Self

Converts to this type from the input type.
§

impl Interface for IPortableDeviceValues

§

fn as_raw(&self) -> *mut c_void

Returns the raw COM interface pointer. The resulting pointer continues to be owned by the Interface implementation.
§

fn into_raw(self) -> *mut c_void

Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§

unsafe fn from_raw(raw: *mut c_void) -> Self

Creates an Interface by taking ownership of the raw COM interface pointer. Read more
§

unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>

Creates an Interface that is valid so long as the raw COM interface pointer is valid. Read more
§

fn cast<T>(&self) -> Result<T, Error>
where T: Interface,

Attempts to cast the current interface to another interface using QueryInterface. Read more
§

fn downgrade(&self) -> Result<Weak<Self>, Error>

Attempts to create a Weak reference to this object.
§

unsafe fn query(&self, iid: *const GUID, interface: *mut *mut c_void) -> HRESULT

Call QueryInterface on this interface Read more
§

impl PartialEq for IPortableDeviceValues

§

fn eq(&self, other: &IPortableDeviceValues) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
§

impl Eq for IPortableDeviceValues

§

impl StructuralPartialEq for IPortableDeviceValues

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.