pub struct MemBlobStore { /* private fields */ }Expand description
In-memory CAS — used by unit tests and the (planned) --ephemeral CLI
flag. Stores raw bytes; no compression because we already paid for the
allocation.
Implementations§
Source§impl MemBlobStore
impl MemBlobStore
Trait Implementations§
Source§impl BlobStore for MemBlobStore
impl BlobStore for MemBlobStore
Source§fn put(&self, bytes: &[u8]) -> Result<Digest256>
fn put(&self, bytes: &[u8]) -> Result<Digest256>
Insert
bytes, return its content digest. Idempotent: storing the
same payload twice produces the same digest and is a no-op the second
time.Source§fn get(&self, digest: &Digest256) -> Result<Vec<u8>>
fn get(&self, digest: &Digest256) -> Result<Vec<u8>>
Retrieve the bytes for a previously-stored digest.
Source§fn physical_bytes(&self) -> Result<u64>
fn physical_bytes(&self) -> Result<u64>
Total physical bytes stored on disk (compressed). Implementations may
approximate; used for
pf status and the storage-efficiency
microbenchmark.Source§impl Debug for MemBlobStore
impl Debug for MemBlobStore
Source§impl Default for MemBlobStore
impl Default for MemBlobStore
Source§fn default() -> MemBlobStore
fn default() -> MemBlobStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MemBlobStore
impl !RefUnwindSafe for MemBlobStore
impl Send for MemBlobStore
impl Sync for MemBlobStore
impl Unpin for MemBlobStore
impl UnsafeUnpin for MemBlobStore
impl UnwindSafe for MemBlobStore
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