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]
impl<T> SelfEncryptionStorage<T>
Trait Implementations
impl<T: 'static> Storage for SelfEncryptionStorage<T>
[src]
impl<T: 'static> Storage for SelfEncryptionStorage<T>
type Error = SelfEncryptionStorageError
Error type returned by get
or put
.
ⓘImportant traits for Box<R>fn get(&self, name: &[u8]) -> Box<Future<Item = Vec<u8>, Error = Self::Error>>
[src]
ⓘImportant traits for Box<R>
fn get(&self, name: &[u8]) -> Box<Future<Item = Vec<u8>, Error = Self::Error>>
Retrieve data previously put
under name
. If the data does not exist, an error should be returned. Read more
ⓘImportant traits for Box<R>fn put(
&mut self,
_: Vec<u8>,
data: Vec<u8>
) -> Box<Future<Item = (), Error = Self::Error>>
[src]
ⓘImportant traits for Box<R>
fn put(
&mut self,
_: Vec<u8>,
data: Vec<u8>
) -> Box<Future<Item = (), Error = Self::Error>>
Store data
under name
.
Auto Trait Implementations
impl<T> !Send for SelfEncryptionStorage<T>
impl<T> !Send for SelfEncryptionStorage<T>
impl<T> !Sync for SelfEncryptionStorage<T>
impl<T> !Sync for SelfEncryptionStorage<T>