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