pub struct InMemoryRandomAccessStream(/* private fields */);
Implementations§
Source§impl InMemoryRandomAccessStream
impl InMemoryRandomAccessStream
pub fn new() -> Result<Self>
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 InMemoryRandomAccessStream
impl Clone for InMemoryRandomAccessStream
Source§fn clone(&self) -> InMemoryRandomAccessStream
fn clone(&self) -> InMemoryRandomAccessStream
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 InMemoryRandomAccessStream
impl Debug for InMemoryRandomAccessStream
Source§impl From<&InMemoryRandomAccessStream> for IClosable
impl From<&InMemoryRandomAccessStream> for IClosable
Source§fn from(value: &InMemoryRandomAccessStream) -> Self
fn from(value: &InMemoryRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<&InMemoryRandomAccessStream> for IInputStream
impl From<&InMemoryRandomAccessStream> for IInputStream
Source§fn from(value: &InMemoryRandomAccessStream) -> Self
fn from(value: &InMemoryRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<&InMemoryRandomAccessStream> for IOutputStream
impl From<&InMemoryRandomAccessStream> for IOutputStream
Source§fn from(value: &InMemoryRandomAccessStream) -> Self
fn from(value: &InMemoryRandomAccessStream) -> 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<&InMemoryRandomAccessStream> for Object
impl From<&InMemoryRandomAccessStream> for Object
Source§fn from(value: &InMemoryRandomAccessStream) -> Self
fn from(value: &InMemoryRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<InMemoryRandomAccessStream> for IClosable
impl From<InMemoryRandomAccessStream> for IClosable
Source§fn from(value: InMemoryRandomAccessStream) -> Self
fn from(value: InMemoryRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<InMemoryRandomAccessStream> for IInputStream
impl From<InMemoryRandomAccessStream> for IInputStream
Source§fn from(value: InMemoryRandomAccessStream) -> Self
fn from(value: InMemoryRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl From<InMemoryRandomAccessStream> for IOutputStream
impl From<InMemoryRandomAccessStream> for IOutputStream
Source§fn from(value: InMemoryRandomAccessStream) -> Self
fn from(value: InMemoryRandomAccessStream) -> 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<InMemoryRandomAccessStream> for Object
impl From<InMemoryRandomAccessStream> for Object
Source§fn from(value: InMemoryRandomAccessStream) -> Self
fn from(value: InMemoryRandomAccessStream) -> Self
Converts to this type from the input type.
Source§impl Interface for InMemoryRandomAccessStream
impl Interface for InMemoryRandomAccessStream
const IID: Guid
type Vtable = IRandomAccessStream_abi
Source§impl<'a> IntoParam<'a, IClosable> for &'a InMemoryRandomAccessStream
impl<'a> IntoParam<'a, IClosable> for &'a InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, IClosable>
Source§impl<'a> IntoParam<'a, IClosable> for InMemoryRandomAccessStream
impl<'a> IntoParam<'a, IClosable> for InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, IClosable>
Source§impl<'a> IntoParam<'a, IInputStream> for &'a InMemoryRandomAccessStream
impl<'a> IntoParam<'a, IInputStream> for &'a InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, IInputStream>
Source§impl<'a> IntoParam<'a, IInputStream> for InMemoryRandomAccessStream
impl<'a> IntoParam<'a, IInputStream> for InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, IInputStream>
Source§impl<'a> IntoParam<'a, IOutputStream> for &'a InMemoryRandomAccessStream
impl<'a> IntoParam<'a, IOutputStream> for &'a InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, IOutputStream>
Source§impl<'a> IntoParam<'a, IOutputStream> for InMemoryRandomAccessStream
impl<'a> IntoParam<'a, IOutputStream> for InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, IOutputStream>
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 InMemoryRandomAccessStream
impl<'a> IntoParam<'a, IRandomAccessStream> for InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, IRandomAccessStream>
Source§impl<'a> IntoParam<'a, Object> for &'a InMemoryRandomAccessStream
impl<'a> IntoParam<'a, Object> for &'a InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, Object>
Source§impl<'a> IntoParam<'a, Object> for InMemoryRandomAccessStream
impl<'a> IntoParam<'a, Object> for InMemoryRandomAccessStream
fn into_param(self) -> Param<'a, Object>
impl Eq for InMemoryRandomAccessStream
impl Send for InMemoryRandomAccessStream
impl StructuralPartialEq for InMemoryRandomAccessStream
impl Sync for InMemoryRandomAccessStream
Auto Trait Implementations§
impl Freeze for InMemoryRandomAccessStream
impl RefUnwindSafe for InMemoryRandomAccessStream
impl Unpin for InMemoryRandomAccessStream
impl UnwindSafe for InMemoryRandomAccessStream
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