QueueBlob

Trait QueueBlob 

Source
pub trait QueueBlob:
    Send
    + Sync
    + 'static {
    // Required methods
    async fn read(
        &self,
        index: usize,
        etag: &Option<Etag>,
    ) -> Result<ReadResponse>;
    fn write(&self, data: Vec<u8>) -> impl Future<Output = Result<()>> + Send;
}

Required Methods§

Source

async fn read(&self, index: usize, etag: &Option<Etag>) -> Result<ReadResponse>

Source

fn write(&self, data: Vec<u8>) -> impl Future<Output = Result<()>> + Send

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.

Implementations on Foreign Types§

Source§

impl QueueBlob for BlobClient

Source§

async fn read(&self, index: usize, etag: &Option<Etag>) -> Result<ReadResponse>

Source§

async fn write(&self, to_send: Vec<u8>) -> Result<()>

Implementors§