pub struct IRandomAccessStream(/* private fields */);
Implementations§
Source§impl IRandomAccessStream
impl IRandomAccessStream
pub fn Size(&self) -> Result<u64>
pub fn SetSize(&self, value: u64) -> Result<()>
pub fn GetInputStreamAt(&self, position: u64) -> Result<IInputStream>
pub fn GetOutputStreamAt(&self, position: u64) -> Result<IOutputStream>
pub fn Position(&self) -> Result<u64>
pub fn Seek(&self, position: u64) -> Result<()>
pub fn CloneStream(&self) -> Result<IRandomAccessStream>
pub fn CanRead(&self) -> Result<bool>
pub fn CanWrite(&self) -> Result<bool>
pub fn Close(&self) -> Result<()>
pub fn ReadAsync<'a, T0__: IntoParam<'a, IBuffer>>( &self, buffer: T0__, count: u32, options: InputStreamOptions, ) -> Result<IAsyncOperationWithProgress<IBuffer, u32>>
pub fn WriteAsync<'a, T0__: IntoParam<'a, IBuffer>>( &self, buffer: T0__, ) -> Result<IAsyncOperationWithProgress<u32, u32>>
pub fn FlushAsync(&self) -> Result<IAsyncOperation<bool>>
Trait Implementations§
Source§impl Clone for IRandomAccessStream
impl Clone for IRandomAccessStream
Source§fn clone(&self) -> IRandomAccessStream
fn clone(&self) -> IRandomAccessStream
Returns a duplicate 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 moreSource§impl Debug for IRandomAccessStream
impl Debug for IRandomAccessStream
Source§impl From<&FileRandomAccessStream> for IRandomAccessStream
impl From<&FileRandomAccessStream> for IRandomAccessStream
Source§fn from(value: &FileRandomAccessStream) -> Self
fn from(value: &FileRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<&IRandomAccessStream> for IClosable
impl From<&IRandomAccessStream> for IClosable
Source§fn from(value: &IRandomAccessStream) -> Self
fn from(value: &IRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<&IRandomAccessStream> for IInputStream
impl From<&IRandomAccessStream> for IInputStream
Source§fn from(value: &IRandomAccessStream) -> Self
fn from(value: &IRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<&IRandomAccessStream> for IOutputStream
impl From<&IRandomAccessStream> for IOutputStream
Source§fn from(value: &IRandomAccessStream) -> Self
fn from(value: &IRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<&IRandomAccessStream> for Object
impl From<&IRandomAccessStream> for Object
Source§fn from(value: &IRandomAccessStream) -> Self
fn from(value: &IRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<&IRandomAccessStreamWithContentType> for IRandomAccessStream
impl From<&IRandomAccessStreamWithContentType> for IRandomAccessStream
Source§fn from(value: &IRandomAccessStreamWithContentType) -> Self
fn from(value: &IRandomAccessStreamWithContentType) -> Self
Converts to this type from the input type.
Source§impl From<&InMemoryRandomAccessStream> for IRandomAccessStream
impl From<&InMemoryRandomAccessStream> for IRandomAccessStream
Source§fn from(value: &InMemoryRandomAccessStream) -> Self
fn from(value: &InMemoryRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<&RandomAccessStreamOverStream> for IRandomAccessStream
impl From<&RandomAccessStreamOverStream> for IRandomAccessStream
Source§fn from(value: &RandomAccessStreamOverStream) -> Self
fn from(value: &RandomAccessStreamOverStream) -> Self
Converts to this type from the input type.
Source§impl From<FileRandomAccessStream> for IRandomAccessStream
impl From<FileRandomAccessStream> for IRandomAccessStream
Source§fn from(value: FileRandomAccessStream) -> Self
fn from(value: FileRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<IRandomAccessStream> for IClosable
impl From<IRandomAccessStream> for IClosable
Source§fn from(value: IRandomAccessStream) -> Self
fn from(value: IRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<IRandomAccessStream> for IInputStream
impl From<IRandomAccessStream> for IInputStream
Source§fn from(value: IRandomAccessStream) -> Self
fn from(value: IRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<IRandomAccessStream> for IOutputStream
impl From<IRandomAccessStream> for IOutputStream
Source§fn from(value: IRandomAccessStream) -> Self
fn from(value: IRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<IRandomAccessStream> for Object
impl From<IRandomAccessStream> for Object
Source§fn from(value: IRandomAccessStream) -> Self
fn from(value: IRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<IRandomAccessStreamWithContentType> for IRandomAccessStream
impl From<IRandomAccessStreamWithContentType> for IRandomAccessStream
Source§fn from(value: IRandomAccessStreamWithContentType) -> Self
fn from(value: IRandomAccessStreamWithContentType) -> Self
Converts to this type from the input type.
Source§impl From<InMemoryRandomAccessStream> for IRandomAccessStream
impl From<InMemoryRandomAccessStream> for IRandomAccessStream
Source§fn from(value: InMemoryRandomAccessStream) -> Self
fn from(value: InMemoryRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<RandomAccessStreamOverStream> for IRandomAccessStream
impl From<RandomAccessStreamOverStream> for IRandomAccessStream
Source§fn from(value: RandomAccessStreamOverStream) -> Self
fn from(value: RandomAccessStreamOverStream) -> Self
Converts to this type from the input type.
Source§impl Interface for IRandomAccessStream
impl Interface for IRandomAccessStream
const IID: Guid
type Vtable = IRandomAccessStream_abi
Source§impl<'a> IntoParam<'a, IClosable> for &'a IRandomAccessStream
impl<'a> IntoParam<'a, IClosable> for &'a IRandomAccessStream
fn into_param(self) -> Param<'a, IClosable>
Source§impl<'a> IntoParam<'a, IClosable> for IRandomAccessStream
impl<'a> IntoParam<'a, IClosable> for IRandomAccessStream
fn into_param(self) -> Param<'a, IClosable>
Source§impl<'a> IntoParam<'a, IInputStream> for &'a IRandomAccessStream
impl<'a> IntoParam<'a, IInputStream> for &'a IRandomAccessStream
fn into_param(self) -> Param<'a, IInputStream>
Source§impl<'a> IntoParam<'a, IInputStream> for IRandomAccessStream
impl<'a> IntoParam<'a, IInputStream> for IRandomAccessStream
fn into_param(self) -> Param<'a, IInputStream>
Source§impl<'a> IntoParam<'a, IOutputStream> for &'a IRandomAccessStream
impl<'a> IntoParam<'a, IOutputStream> for &'a IRandomAccessStream
fn into_param(self) -> Param<'a, IOutputStream>
Source§impl<'a> IntoParam<'a, IOutputStream> for IRandomAccessStream
impl<'a> IntoParam<'a, IOutputStream> for IRandomAccessStream
fn into_param(self) -> Param<'a, IOutputStream>
Source§impl<'a> IntoParam<'a, IRandomAccessStream> for &'a FileRandomAccessStream
impl<'a> IntoParam<'a, IRandomAccessStream> for &'a FileRandomAccessStream
fn into_param(self) -> Param<'a, IRandomAccessStream>
Source§impl<'a> IntoParam<'a, IRandomAccessStream> for &'a IRandomAccessStreamWithContentType
impl<'a> IntoParam<'a, IRandomAccessStream> for &'a IRandomAccessStreamWithContentType
fn into_param(self) -> Param<'a, IRandomAccessStream>
Source§impl<'a> IntoParam<'a, IRandomAccessStream> for &'a InMemoryRandomAccessStream
impl<'a> IntoParam<'a, IRandomAccessStream> for &'a InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, IRandomAccessStream>
Source§impl<'a> IntoParam<'a, IRandomAccessStream> for &'a RandomAccessStreamOverStream
impl<'a> IntoParam<'a, IRandomAccessStream> for &'a RandomAccessStreamOverStream
fn into_param(self) -> Param<'a, IRandomAccessStream>
Source§impl<'a> IntoParam<'a, IRandomAccessStream> for FileRandomAccessStream
impl<'a> IntoParam<'a, IRandomAccessStream> for FileRandomAccessStream
fn into_param(self) -> Param<'a, IRandomAccessStream>
Source§impl<'a> IntoParam<'a, IRandomAccessStream> for IRandomAccessStreamWithContentType
impl<'a> IntoParam<'a, IRandomAccessStream> for IRandomAccessStreamWithContentType
fn into_param(self) -> Param<'a, IRandomAccessStream>
Source§impl<'a> IntoParam<'a, IRandomAccessStream> for InMemoryRandomAccessStream
impl<'a> IntoParam<'a, IRandomAccessStream> for InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, IRandomAccessStream>
Source§impl<'a> IntoParam<'a, IRandomAccessStream> for RandomAccessStreamOverStream
impl<'a> IntoParam<'a, IRandomAccessStream> for RandomAccessStreamOverStream
fn into_param(self) -> Param<'a, IRandomAccessStream>
Source§impl<'a> IntoParam<'a, Object> for &'a IRandomAccessStream
impl<'a> IntoParam<'a, Object> for &'a IRandomAccessStream
fn into_param(self) -> Param<'a, Object>
Source§impl<'a> IntoParam<'a, Object> for IRandomAccessStream
impl<'a> IntoParam<'a, Object> for IRandomAccessStream
fn into_param(self) -> Param<'a, Object>
Source§impl PartialEq for IRandomAccessStream
impl PartialEq for IRandomAccessStream
Source§impl RuntimeType for IRandomAccessStream
impl RuntimeType for IRandomAccessStream
const SIGNATURE: ConstBuffer
type DefaultType = Option<IRandomAccessStream>
impl Eq for IRandomAccessStream
impl StructuralPartialEq for IRandomAccessStream
Auto Trait Implementations§
impl Freeze for IRandomAccessStream
impl RefUnwindSafe for IRandomAccessStream
impl !Send for IRandomAccessStream
impl !Sync for IRandomAccessStream
impl Unpin for IRandomAccessStream
impl UnwindSafe for IRandomAccessStream
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
Source§unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
unsafe fn from_abi(abi: <T as Abi>::Abi) -> Result<T, Error>
Casts the ABI representation to a Rust object by taking ownership of the bits.
fn drop_param(_: &mut Param<'_, Self>)
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