Struct asuran::repository::backend::object_wrappers::BackendWrapper [−][src]
pub struct BackendWrapper<T: Backend>(_);
Expand description
Wraps a Backend in an object safe way
Trait Implementations
type Manifest = ManifestObject
type Index = IndexObject
Writes the specified encrypted key to the backend Read more
Attempts to read the encrypted key from the backend.
Returns a view of this respository’s manifest
fn read_chunk<'life0, 'async_trait>(
&'life0 mut self,
location: SegmentDescriptor
) -> Pin<Box<dyn Future<Output = Result<Chunk>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn read_chunk<'life0, 'async_trait>(
&'life0 mut self,
location: SegmentDescriptor
) -> Pin<Box<dyn Future<Output = Result<Chunk>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Starts reading a chunk from the backend Read more
fn write_chunk<'life0, 'async_trait>(
&'life0 mut self,
chunk: Chunk
) -> Pin<Box<dyn Future<Output = Result<SegmentDescriptor>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn write_chunk<'life0, 'async_trait>(
&'life0 mut self,
chunk: Chunk
) -> Pin<Box<dyn Future<Output = Result<SegmentDescriptor>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Starts writing a chunk to the backend Read more
Consumes the current backend handle, and does any work necessary to close out the backend properly Read more
Creates a new trait-object based BackendHandle Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for BackendWrapper<T> where
T: RefUnwindSafe,
impl<T> Send for BackendWrapper<T>
impl<T> Sync for BackendWrapper<T>
impl<T> Unpin for BackendWrapper<T> where
T: Unpin,
impl<T> UnwindSafe for BackendWrapper<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more