pub struct FileIO;
Implementations§
§impl FileIO
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> 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