pub trait Write {
// Required method
fn write_stream(
&self,
kind: Kind,
size: u64,
from: &mut dyn Read,
) -> Result<ObjectId, Error>;
// Provided methods
fn write(&self, object: &dyn WriteTo) -> Result<ObjectId, Error> { ... }
fn write_buf(&self, object: Kind, from: &[u8]) -> Result<ObjectId, Error> { ... }
}
Expand description
Describe the capability to write git objects into an object store.