Trait windows::Storage::IStorageFile_Impl

pub trait IStorageFile_Impl: Sized + IInputStreamReference_Impl + IRandomAccessStreamReference_Impl + IStorageItem_Impl {
    // Required methods
    fn FileType(&self) -> Result<HSTRING>;
    fn ContentType(&self) -> Result<HSTRING>;
    fn OpenAsync(
        &self,
        accessmode: FileAccessMode,
    ) -> Result<IAsyncOperation<IRandomAccessStream>>;
    fn OpenTransactedWriteAsync(
        &self,
    ) -> Result<IAsyncOperation<StorageStreamTransaction>>;
    fn CopyOverloadDefaultNameAndOptions(
        &self,
        destinationfolder: Option<&IStorageFolder>,
    ) -> Result<IAsyncOperation<StorageFile>>;
    fn CopyOverloadDefaultOptions(
        &self,
        destinationfolder: Option<&IStorageFolder>,
        desirednewname: &HSTRING,
    ) -> Result<IAsyncOperation<StorageFile>>;
    fn CopyOverload(
        &self,
        destinationfolder: Option<&IStorageFolder>,
        desirednewname: &HSTRING,
        option: NameCollisionOption,
    ) -> Result<IAsyncOperation<StorageFile>>;
    fn CopyAndReplaceAsync(
        &self,
        filetoreplace: Option<&IStorageFile>,
    ) -> Result<IAsyncAction>;
    fn MoveOverloadDefaultNameAndOptions(
        &self,
        destinationfolder: Option<&IStorageFolder>,
    ) -> Result<IAsyncAction>;
    fn MoveOverloadDefaultOptions(
        &self,
        destinationfolder: Option<&IStorageFolder>,
        desirednewname: &HSTRING,
    ) -> Result<IAsyncAction>;
    fn MoveOverload(
        &self,
        destinationfolder: Option<&IStorageFolder>,
        desirednewname: &HSTRING,
        option: NameCollisionOption,
    ) -> Result<IAsyncAction>;
    fn MoveAndReplaceAsync(
        &self,
        filetoreplace: Option<&IStorageFile>,
    ) -> Result<IAsyncAction>;
}

Required Methods§

fn FileType(&self) -> Result<HSTRING>

fn ContentType(&self) -> Result<HSTRING>

fn OpenAsync( &self, accessmode: FileAccessMode, ) -> Result<IAsyncOperation<IRandomAccessStream>>

fn OpenTransactedWriteAsync( &self, ) -> Result<IAsyncOperation<StorageStreamTransaction>>

fn CopyOverloadDefaultNameAndOptions( &self, destinationfolder: Option<&IStorageFolder>, ) -> Result<IAsyncOperation<StorageFile>>

fn CopyOverloadDefaultOptions( &self, destinationfolder: Option<&IStorageFolder>, desirednewname: &HSTRING, ) -> Result<IAsyncOperation<StorageFile>>

fn CopyOverload( &self, destinationfolder: Option<&IStorageFolder>, desirednewname: &HSTRING, option: NameCollisionOption, ) -> Result<IAsyncOperation<StorageFile>>

fn CopyAndReplaceAsync( &self, filetoreplace: Option<&IStorageFile>, ) -> Result<IAsyncAction>

fn MoveOverloadDefaultNameAndOptions( &self, destinationfolder: Option<&IStorageFolder>, ) -> Result<IAsyncAction>

fn MoveOverloadDefaultOptions( &self, destinationfolder: Option<&IStorageFolder>, desirednewname: &HSTRING, ) -> Result<IAsyncAction>

fn MoveOverload( &self, destinationfolder: Option<&IStorageFolder>, desirednewname: &HSTRING, option: NameCollisionOption, ) -> Result<IAsyncAction>

fn MoveAndReplaceAsync( &self, filetoreplace: Option<&IStorageFile>, ) -> Result<IAsyncAction>

Object Safety§

This trait is not object safe.

Implementors§