Trait cloud::blob::BlobStorage[][src]

pub trait BlobStorage: 'static + Send + Sync {
    fn config(&self) -> Box<dyn BlobConfig>;
fn put(
        &self,
        name: &str,
        reader: Box<dyn AsyncRead + Send + Unpin>,
        content_length: u64
    ) -> Result<()>;
fn get(&self, name: &str) -> Box<dyn AsyncRead + Unpin>; }

An abstraction for blob storage. Currently the same as ExternalStorage

Required methods

fn config(&self) -> Box<dyn BlobConfig>[src]

fn put(
    &self,
    name: &str,
    reader: Box<dyn AsyncRead + Send + Unpin>,
    content_length: u64
) -> Result<()>
[src]

Write all contents of the read to the given path.

fn get(&self, name: &str) -> Box<dyn AsyncRead + Unpin>[src]

Read all contents of the given path.

Loading content...

Trait Implementations

impl BlobConfig for dyn BlobStorage[src]

Implementations on Foreign Types

impl BlobStorage for Box<dyn BlobStorage>[src]

Loading content...

Implementors

Loading content...