Struct safe_core::self_encryption_storage::SelfEncryptionStorage
[−]
[src]
pub struct SelfEncryptionStorage<T> { /* fields omitted */ }
Network storage is the concrete type which self-encryption crate will use to put or get data from the network
Methods
impl<T> SelfEncryptionStorage<T>
[src]
Trait Implementations
impl<T: 'static> Storage for SelfEncryptionStorage<T>
[src]
type Error = SelfEncryptionStorageError
Error type returned by get
or put
.
fn get(&self, name: &[u8]) -> Box<Future<Item = Vec<u8>, Error = Self::Error>>
[src]
Retrieve data previously put
under name
. If the data does not exist, an error should be returned. Read more
fn put(
&mut self,
_: Vec<u8>,
data: Vec<u8>
) -> Box<Future<Item = (), Error = Self::Error>>
[src]
&mut self,
_: Vec<u8>,
data: Vec<u8>
) -> Box<Future<Item = (), Error = Self::Error>>
Store data
under name
.