Trait opendal::raw::oio::OneShotWrite
source · pub trait OneShotWrite: Send + Sync + Unpin + 'static {
// Required method
fn write_once(
&self,
bs: Buffer,
) -> impl Future<Output = Result<()>> + MaybeSend;
}
Expand description
OneShotWrite is used to implement oio::Write
based on one shot operation.
By implementing OneShotWrite, services don’t need to care about the details.
For example, S3 PUT Object
and fs write_all
.
The layout after adopting OneShotWrite
:
Required Methods§
Object Safety§
This trait is not object safe.