Struct windows::Storage::FileIO

pub struct FileIO;

Implementations§

§

impl FileIO

pub fn ReadTextAsync<P0>(file: P0) -> Result<IAsyncOperation<HSTRING>>
where P0: Param<IStorageFile>,

pub fn ReadTextWithEncodingAsync<P0>( file: P0, encoding: UnicodeEncoding, ) -> Result<IAsyncOperation<HSTRING>>
where P0: Param<IStorageFile>,

pub fn WriteTextAsync<P0>(file: P0, contents: &HSTRING) -> Result<IAsyncAction>
where P0: Param<IStorageFile>,

pub fn WriteTextWithEncodingAsync<P0>( file: P0, contents: &HSTRING, encoding: UnicodeEncoding, ) -> Result<IAsyncAction>
where P0: Param<IStorageFile>,

pub fn AppendTextAsync<P0>(file: P0, contents: &HSTRING) -> Result<IAsyncAction>
where P0: Param<IStorageFile>,

pub fn AppendTextWithEncodingAsync<P0>( file: P0, contents: &HSTRING, encoding: UnicodeEncoding, ) -> Result<IAsyncAction>
where P0: Param<IStorageFile>,

pub fn ReadLinesAsync<P0>(file: P0) -> Result<IAsyncOperation<IVector<HSTRING>>>
where P0: Param<IStorageFile>,

pub fn ReadLinesWithEncodingAsync<P0>( file: P0, encoding: UnicodeEncoding, ) -> Result<IAsyncOperation<IVector<HSTRING>>>
where P0: Param<IStorageFile>,

pub fn WriteLinesAsync<P0, P1>(file: P0, lines: P1) -> Result<IAsyncAction>
where P0: Param<IStorageFile>, P1: Param<IIterable<HSTRING>>,

pub fn WriteLinesWithEncodingAsync<P0, P1>( file: P0, lines: P1, encoding: UnicodeEncoding, ) -> Result<IAsyncAction>
where P0: Param<IStorageFile>, P1: Param<IIterable<HSTRING>>,

pub fn AppendLinesAsync<P0, P1>(file: P0, lines: P1) -> Result<IAsyncAction>
where P0: Param<IStorageFile>, P1: Param<IIterable<HSTRING>>,

pub fn AppendLinesWithEncodingAsync<P0, P1>( file: P0, lines: P1, encoding: UnicodeEncoding, ) -> Result<IAsyncAction>
where P0: Param<IStorageFile>, P1: Param<IIterable<HSTRING>>,

pub fn ReadBufferAsync<P0>(file: P0) -> Result<IAsyncOperation<IBuffer>>
where P0: Param<IStorageFile>,

pub fn WriteBufferAsync<P0, P1>(file: P0, buffer: P1) -> Result<IAsyncAction>
where P0: Param<IStorageFile>, P1: Param<IBuffer>,

pub fn WriteBytesAsync<P0>(file: P0, buffer: &[u8]) -> Result<IAsyncAction>
where P0: Param<IStorageFile>,

Auto Trait Implementations§

§

impl Freeze for FileIO

§

impl RefUnwindSafe for FileIO

§

impl Send for FileIO

§

impl Sync for FileIO

§

impl Unpin for FileIO

§

impl UnwindSafe for FileIO

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.