[][src]Struct teaclave_types::StagedFileInfo

pub struct StagedFileInfo {
    pub path: PathBuf,
    pub crypto_info: TeaclaveFile128Key,
    pub cmac: FileAuthTag,
}

Fields

path: PathBufcrypto_info: TeaclaveFile128Keycmac: FileAuthTag

Methods

impl StagedFileInfo[src]

pub fn new(
    path: impl AsRef<Path>,
    crypto_info: TeaclaveFile128Key,
    cmac: impl Into<FileAuthTag>
) -> Self
[src]

pub fn create_readable_io(&self) -> Result<Box<dyn Read>>[src]

pub fn create_writable_io(&self) -> Result<Box<dyn Write>>[src]

pub fn convert_file(
    &self,
    dst: impl AsRef<Path>,
    crypto: TeaclaveFile128Key
) -> Result<StagedFileInfo>
[src]

pub fn create_with_bytes(
    path: impl AsRef<Path>,
    bytes: &[u8]
) -> Result<StagedFileInfo>
[src]

Trait Implementations

impl Clone for StagedFileInfo[src]

impl Debug for StagedFileInfo[src]

impl Default for StagedFileInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for StagedFileInfo

impl Send for StagedFileInfo

impl Sync for StagedFileInfo

impl Unpin for StagedFileInfo

impl UnwindSafe for StagedFileInfo

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]