pub struct Sink { /* private fields */ }
Expand description
It can optionally compress the content, similarly to what would happen when using a loose::Store
.
Implementations§
Trait Implementations§
source§impl Write for Sink
impl Write for Sink
source§fn write_stream(
&self,
kind: Kind,
size: u64,
from: impl Read
) -> Result<ObjectId, Self::Error>
fn write_stream( &self, kind: Kind, size: u64, from: impl Read ) -> Result<ObjectId, Self::Error>
As
write
, but takes an input stream.
This is commonly used for writing blobs directly without reading them to memory first.