Struct windows::Storage::Streams::IDataReader
pub struct IDataReader(/* private fields */);
Implementations§
§impl IDataReader
impl IDataReader
pub fn UnconsumedBufferLength(&self) -> Result<u32>
pub fn UnicodeEncoding(&self) -> Result<UnicodeEncoding>
pub fn SetUnicodeEncoding(&self, value: UnicodeEncoding) -> Result<()>
pub fn ByteOrder(&self) -> Result<ByteOrder>
pub fn SetByteOrder(&self, value: ByteOrder) -> Result<()>
pub fn InputStreamOptions(&self) -> Result<InputStreamOptions>
pub fn SetInputStreamOptions(&self, value: InputStreamOptions) -> Result<()>
pub fn ReadByte(&self) -> Result<u8>
pub fn ReadBytes(&self, value: &mut [u8]) -> Result<()>
pub fn ReadBuffer(&self, length: u32) -> Result<IBuffer>
pub fn ReadBoolean(&self) -> Result<bool>
pub fn ReadGuid(&self) -> Result<GUID>
pub fn ReadInt16(&self) -> Result<i16>
pub fn ReadInt32(&self) -> Result<i32>
pub fn ReadInt64(&self) -> Result<i64>
pub fn ReadUInt16(&self) -> Result<u16>
pub fn ReadUInt32(&self) -> Result<u32>
pub fn ReadUInt64(&self) -> Result<u64>
pub fn ReadSingle(&self) -> Result<f32>
pub fn ReadDouble(&self) -> Result<f64>
pub fn ReadString(&self, codeunitcount: u32) -> Result<HSTRING>
pub fn ReadDateTime(&self) -> Result<DateTime>
pub fn ReadTimeSpan(&self) -> Result<TimeSpan>
pub fn LoadAsync(&self, count: u32) -> Result<DataReaderLoadOperation>
pub fn DetachBuffer(&self) -> Result<IBuffer>
pub fn DetachStream(&self) -> Result<IInputStream>
Methods from Deref<Target = IInspectable>§
pub fn GetRuntimeClassName(&self) -> Result<HSTRING, Error>
pub fn GetRuntimeClassName(&self) -> Result<HSTRING, Error>
Returns the canonical type name for the underlying object.
pub fn GetTrustLevel(&self) -> Result<i32, Error>
pub fn GetTrustLevel(&self) -> Result<i32, Error>
Gets the trust level of the current object.
Trait Implementations§
§impl CanInto<IDataReader> for DataReader
impl CanInto<IDataReader> for DataReader
§impl CanInto<IInspectable> for IDataReader
impl CanInto<IInspectable> for IDataReader
§impl CanInto<IUnknown> for IDataReader
impl CanInto<IUnknown> for IDataReader
§impl Clone for IDataReader
impl Clone for IDataReader
§fn clone(&self) -> IDataReader
fn clone(&self) -> IDataReader
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 IDataReader
impl Debug for IDataReader
§impl Deref for IDataReader
impl Deref for IDataReader
§impl From<&IDataReader> for &IInspectable
impl From<&IDataReader> for &IInspectable
§fn from(value: &IDataReader) -> Self
fn from(value: &IDataReader) -> Self
Converts to this type from the input type.
§impl From<&IDataReader> for &IUnknown
impl From<&IDataReader> for &IUnknown
§fn from(value: &IDataReader) -> Self
fn from(value: &IDataReader) -> Self
Converts to this type from the input type.
§impl From<IDataReader> for IInspectable
impl From<IDataReader> for IInspectable
§fn from(value: IDataReader) -> Self
fn from(value: IDataReader) -> Self
Converts to this type from the input type.
§impl From<IDataReader> for IUnknown
impl From<IDataReader> for IUnknown
§fn from(value: IDataReader) -> Self
fn from(value: IDataReader) -> Self
Converts to this type from the input type.
§impl Interface for IDataReader
impl Interface for IDataReader
§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 IDataReader
impl PartialEq for IDataReader
§fn eq(&self, other: &IDataReader) -> bool
fn eq(&self, other: &IDataReader) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for IDataReader
impl StructuralPartialEq for IDataReader
Auto Trait Implementations§
impl Freeze for IDataReader
impl RefUnwindSafe for IDataReader
impl !Send for IDataReader
impl !Sync for IDataReader
impl Unpin for IDataReader
impl UnwindSafe for IDataReader
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
)