[][src]Struct teaclave_types::StagedFileInfo

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


path: PathBufcrypto_info: TeaclaveFile128Keycmac: FileAuthTag


impl StagedFileInfo[src]

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

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(
    dst: impl AsRef<Path>,
    crypto: TeaclaveFile128Key
) -> Result<StagedFileInfo>

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

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

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

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

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

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

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,