Trait SecureStorage

Source
pub trait SecureStorage: Sized {
    // Required methods
    fn new<'life0, 'life1, 'async_trait>(
        url: &'life0 str,
        password: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn open<'life0, 'life1, 'async_trait>(
        url: &'life0 str,
        password: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn persist<'life0, 'async_trait>(
        &'life0 self,
        __arg1: (Vec<ExportVid>, Aliases),
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn read<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<(Vec<ExportVid>, Aliases), Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn close<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn destroy<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

Source

fn new<'life0, 'life1, 'async_trait>( url: &'life0 str, password: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Create a new secure storage

Source

fn open<'life0, 'life1, 'async_trait>( url: &'life0 str, password: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<Self, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Open an existing secure storage

Source

fn persist<'life0, 'async_trait>( &'life0 self, __arg1: (Vec<ExportVid>, Aliases), ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Write data from memory to secure storage

Source

fn read<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<(Vec<ExportVid>, Aliases), Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Read data from secure storage to memory

Source

fn close<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Close the secure storage

Source

fn destroy<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Destroy the secure storage

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§