pub struct FileProtectionManager;

Implementations§

§

impl FileProtectionManager

pub fn ProtectAsync<P0>( target: P0, identity: &HSTRING ) -> Result<IAsyncOperation<FileProtectionInfo>>
where P0: IntoParam<IStorageItem>,

pub fn CopyProtectionAsync<P0, P1>( source: P0, target: P1 ) -> Result<IAsyncOperation<bool>>
where P0: IntoParam<IStorageItem>, P1: IntoParam<IStorageItem>,

pub fn GetProtectionInfoAsync<P0>( source: P0 ) -> Result<IAsyncOperation<FileProtectionInfo>>
where P0: IntoParam<IStorageItem>,

pub fn SaveFileAsContainerAsync<P0>( protectedfile: P0 ) -> Result<IAsyncOperation<ProtectedContainerExportResult>>
where P0: IntoParam<IStorageFile>,

pub fn LoadFileFromContainerAsync<P0>( containerfile: P0 ) -> Result<IAsyncOperation<ProtectedContainerImportResult>>
where P0: IntoParam<IStorageFile>,

pub fn LoadFileFromContainerWithTargetAsync<P0, P1>( containerfile: P0, target: P1 ) -> Result<IAsyncOperation<ProtectedContainerImportResult>>
where P0: IntoParam<IStorageFile>, P1: IntoParam<IStorageItem>,

pub fn CreateProtectedAndOpenAsync<P0>( parentfolder: P0, desiredname: &HSTRING, identity: &HSTRING, collisionoption: CreationCollisionOption ) -> Result<IAsyncOperation<ProtectedFileCreateResult>>
where P0: IntoParam<IStorageFolder>,

pub fn IsContainerAsync<P0>(file: P0) -> Result<IAsyncOperation<bool>>
where P0: IntoParam<IStorageFile>,

pub fn LoadFileFromContainerWithTargetAndNameCollisionOptionAsync<P0, P1>( containerfile: P0, target: P1, collisionoption: NameCollisionOption ) -> Result<IAsyncOperation<ProtectedContainerImportResult>>
where P0: IntoParam<IStorageFile>, P1: IntoParam<IStorageItem>,

pub fn SaveFileAsContainerWithSharingAsync<P0, P1>( protectedfile: P0, sharedwithidentities: P1 ) -> Result<IAsyncOperation<ProtectedContainerExportResult>>
where P0: IntoParam<IStorageFile>, P1: IntoParam<IIterable<HSTRING>>,

pub fn UnprotectAsync<P0>( target: P0 ) -> Result<IAsyncOperation<FileProtectionInfo>>
where P0: IntoParam<IStorageItem>,

pub fn UnprotectWithOptionsAsync<P0, P1>( target: P0, options: P1 ) -> Result<IAsyncOperation<FileProtectionInfo>>
where P0: IntoParam<IStorageItem>, P1: IntoParam<FileUnprotectOptions>,

Auto Trait Implementations§

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.