pub trait BlockingWrite: Send + Sync + 'static {
    fn write(&mut self, bs: Bytes) -> Result<()>;
    fn append(&mut self, bs: Bytes) -> Result<()>;
    fn close(&mut self) -> Result<()>;
}
Expand description

BlockingWrite is the trait that OpenDAL returns to callers.

Required Methods§

Write whole content at once.

Append content at tailing.

Close the writer and make sure all data has been flushed.

Implementations on Foreign Types§

Box<dyn BlockingWrite> won’t implement BlockingWrite automatically. To make BlockingWriter work as expected, we must add this impl.

Implementors§