pub trait ChunkPut<const BODY_SIZE: usize = DEFAULT_BODY_SIZE>: Send + Sync {
type Error: Error + Send + Sync + 'static;
// Required method
fn put(
&self,
chunk: AnyChunk<BODY_SIZE>,
) -> impl Future<Output = Result<(), Self::Error>> + Send;
}Expand description
Async chunk storage (primary API, &self).
Implementors should use interior mutability (e.g. Mutex, RwLock).
Types implementing SyncChunkPut + Send + Sync get this automatically.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".