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: &mut dyn Read
) -> Result<ObjectId, Error>
fn write_stream( &self, kind: Kind, size: u64, from: &mut dyn Read ) -> Result<ObjectId, Error>
As
write
, but takes an input stream.
This is commonly used for writing blobs directly without reading them to memory first.Auto Trait Implementations§
impl !RefUnwindSafe for Sink
impl Send for Sink
impl !Sync for Sink
impl Unpin for Sink
impl UnwindSafe for Sink
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more