pub type OdbHandle = Handle;
Expand description
A handle for finding objects in an object database, abstracting away caches for thread-local use.
Aliased Type§
struct OdbHandle { /* private fields */ }
Trait Implementations§
source§impl<S> Write for Cache<S>where
S: Write,
impl<S> Write for Cache<S>where S: Write,
source§fn write_stream(
&self,
kind: Kind,
size: u64,
from: &mut dyn Read
) -> Result<ObjectId, Box<dyn Error + Send + Sync, Global>>
fn write_stream( &self, kind: Kind, size: u64, from: &mut dyn Read ) -> Result<ObjectId, Box<dyn Error + Send + Sync, Global>>
As
write
, but takes an input stream.
This is commonly used for writing blobs directly without reading them to memory first.