Struct windows::Devices::Printers::IppAttributeValue
pub struct IppAttributeValue(/* private fields */);
Implementations§
§impl IppAttributeValue
impl IppAttributeValue
pub fn Kind(&self) -> Result<IppAttributeValueKind>
pub fn GetIntegerArray(&self) -> Result<IVector<i32>>
pub fn GetBooleanArray(&self) -> Result<IVector<bool>>
pub fn GetEnumArray(&self) -> Result<IVector<i32>>
pub fn GetOctetStringArray(&self) -> Result<IVector<IBuffer>>
pub fn GetDateTimeArray(&self) -> Result<IVector<DateTime>>
pub fn GetResolutionArray(&self) -> Result<IVector<IppResolution>>
pub fn GetRangeOfIntegerArray(&self) -> Result<IVector<IppIntegerRange>>
pub fn GetCollectionArray( &self, ) -> Result<IVector<IMapView<HSTRING, IppAttributeValue>>>
pub fn GetTextWithLanguageArray(&self) -> Result<IVector<IppTextWithLanguage>>
pub fn GetNameWithLanguageArray(&self) -> Result<IVector<IppTextWithLanguage>>
pub fn GetTextWithoutLanguageArray(&self) -> Result<IVector<HSTRING>>
pub fn GetNameWithoutLanguageArray(&self) -> Result<IVector<HSTRING>>
pub fn GetKeywordArray(&self) -> Result<IVector<HSTRING>>
pub fn GetUriArray(&self) -> Result<IVector<Uri>>
pub fn GetUriSchemaArray(&self) -> Result<IVector<HSTRING>>
pub fn GetCharsetArray(&self) -> Result<IVector<HSTRING>>
pub fn GetNaturalLanguageArray(&self) -> Result<IVector<HSTRING>>
pub fn GetMimeMediaTypeArray(&self) -> Result<IVector<HSTRING>>
pub fn CreateUnsupported() -> Result<IppAttributeValue>
pub fn CreateUnknown() -> Result<IppAttributeValue>
pub fn CreateNoValue() -> Result<IppAttributeValue>
pub fn CreateInteger(value: i32) -> Result<IppAttributeValue>
pub fn CreateIntegerArray<P0>(values: P0) -> Result<IppAttributeValue>
pub fn CreateBoolean(value: bool) -> Result<IppAttributeValue>
pub fn CreateBooleanArray<P0>(values: P0) -> Result<IppAttributeValue>
pub fn CreateEnum(value: i32) -> Result<IppAttributeValue>
pub fn CreateEnumArray<P0>(values: P0) -> Result<IppAttributeValue>
pub fn CreateOctetString<P0>(value: P0) -> Result<IppAttributeValue>where
P0: Param<IBuffer>,
pub fn CreateOctetStringArray<P0>(values: P0) -> Result<IppAttributeValue>
pub fn CreateDateTime(value: DateTime) -> Result<IppAttributeValue>
pub fn CreateDateTimeArray<P0>(values: P0) -> Result<IppAttributeValue>
pub fn CreateResolution<P0>(value: P0) -> Result<IppAttributeValue>where
P0: Param<IppResolution>,
pub fn CreateResolutionArray<P0>(values: P0) -> Result<IppAttributeValue>where
P0: Param<IIterable<IppResolution>>,
pub fn CreateRangeOfInteger<P0>(value: P0) -> Result<IppAttributeValue>where
P0: Param<IppIntegerRange>,
pub fn CreateRangeOfIntegerArray<P0>(values: P0) -> Result<IppAttributeValue>where
P0: Param<IIterable<IppIntegerRange>>,
pub fn CreateCollection<P0>(memberattributes: P0) -> Result<IppAttributeValue>
pub fn CreateCollectionArray<P0>( memberattributesarray: P0, ) -> Result<IppAttributeValue>
pub fn CreateTextWithLanguage<P0>(value: P0) -> Result<IppAttributeValue>where
P0: Param<IppTextWithLanguage>,
pub fn CreateTextWithLanguageArray<P0>(values: P0) -> Result<IppAttributeValue>where
P0: Param<IIterable<IppTextWithLanguage>>,
pub fn CreateNameWithLanguage<P0>(value: P0) -> Result<IppAttributeValue>where
P0: Param<IppTextWithLanguage>,
pub fn CreateNameWithLanguageArray<P0>(values: P0) -> Result<IppAttributeValue>where
P0: Param<IIterable<IppTextWithLanguage>>,
pub fn CreateTextWithoutLanguage(value: &HSTRING) -> Result<IppAttributeValue>
pub fn CreateTextWithoutLanguageArray<P0>(
values: P0,
) -> Result<IppAttributeValue>where
P0: Param<IIterable<HSTRING>>,
pub fn CreateNameWithoutLanguage(value: &HSTRING) -> Result<IppAttributeValue>
pub fn CreateNameWithoutLanguageArray<P0>(
values: P0,
) -> Result<IppAttributeValue>where
P0: Param<IIterable<HSTRING>>,
pub fn CreateKeyword(value: &HSTRING) -> Result<IppAttributeValue>
pub fn CreateKeywordArray<P0>(values: P0) -> Result<IppAttributeValue>where
P0: Param<IIterable<HSTRING>>,
pub fn CreateUri<P0>(value: P0) -> Result<IppAttributeValue>where
P0: Param<Uri>,
pub fn CreateUriArray<P0>(values: P0) -> Result<IppAttributeValue>
pub fn CreateUriSchema(value: &HSTRING) -> Result<IppAttributeValue>
pub fn CreateUriSchemaArray<P0>(values: P0) -> Result<IppAttributeValue>where
P0: Param<IIterable<HSTRING>>,
pub fn CreateCharset(value: &HSTRING) -> Result<IppAttributeValue>
pub fn CreateCharsetArray<P0>(values: P0) -> Result<IppAttributeValue>where
P0: Param<IIterable<HSTRING>>,
pub fn CreateNaturalLanguage(value: &HSTRING) -> Result<IppAttributeValue>
pub fn CreateNaturalLanguageArray<P0>(values: P0) -> Result<IppAttributeValue>where
P0: Param<IIterable<HSTRING>>,
pub fn CreateMimeMedia(value: &HSTRING) -> Result<IppAttributeValue>
pub fn CreateMimeMediaArray<P0>(values: P0) -> Result<IppAttributeValue>where
P0: Param<IIterable<HSTRING>>,
Trait Implementations§
§impl CanInto<IInspectable> for IppAttributeValue
impl CanInto<IInspectable> for IppAttributeValue
§impl CanInto<IUnknown> for IppAttributeValue
impl CanInto<IUnknown> for IppAttributeValue
§impl Clone for IppAttributeValue
impl Clone for IppAttributeValue
§fn clone(&self) -> IppAttributeValue
fn clone(&self) -> IppAttributeValue
Returns a copy 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 more§impl Debug for IppAttributeValue
impl Debug for IppAttributeValue
§impl From<&IppAttributeValue> for &IInspectable
impl From<&IppAttributeValue> for &IInspectable
§fn from(value: &IppAttributeValue) -> Self
fn from(value: &IppAttributeValue) -> Self
Converts to this type from the input type.
§impl From<&IppAttributeValue> for &IUnknown
impl From<&IppAttributeValue> for &IUnknown
§fn from(value: &IppAttributeValue) -> Self
fn from(value: &IppAttributeValue) -> Self
Converts to this type from the input type.
§impl From<IppAttributeValue> for IInspectable
impl From<IppAttributeValue> for IInspectable
§fn from(value: IppAttributeValue) -> Self
fn from(value: IppAttributeValue) -> Self
Converts to this type from the input type.
§impl From<IppAttributeValue> for IUnknown
impl From<IppAttributeValue> for IUnknown
§fn from(value: IppAttributeValue) -> Self
fn from(value: IppAttributeValue) -> Self
Converts to this type from the input type.
§impl Interface for IppAttributeValue
impl Interface for IppAttributeValue
§const IID: GUID = <IIppAttributeValue as windows_core::Interface>::IID
const IID: GUID = <IIppAttributeValue as windows_core::Interface>::IID
The
GUID
associated with the interface.§fn as_raw(&self) -> *mut c_void
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
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.
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.§impl PartialEq for IppAttributeValue
impl PartialEq for IppAttributeValue
§fn eq(&self, other: &IppAttributeValue) -> bool
fn eq(&self, other: &IppAttributeValue) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IppAttributeValue
impl Send for IppAttributeValue
impl StructuralPartialEq for IppAttributeValue
impl Sync for IppAttributeValue
Auto Trait Implementations§
impl Freeze for IppAttributeValue
impl RefUnwindSafe for IppAttributeValue
impl Unpin for IppAttributeValue
impl UnwindSafe for IppAttributeValue
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)