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§
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
Sourcefn 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 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
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.