Type Definition radixdb::store::DynBlobStore
source · [−]Expand description
Type for a dynamic blob store
Uses Arc so the dynamic reference can be cheaply cloned.
Trait Implementations
sourceimpl BlobStore for DynBlobStore
impl BlobStore for DynBlobStore
sourcefn read(&self, id: &[u8]) -> Result<Blob<'static>, Self::Error>
fn read(&self, id: &[u8]) -> Result<Blob<'static>, Self::Error>
Read a blob with the given id. Since ids can be of arbitrary size, passed as a slice
sourcefn write(&self, data: &[u8]) -> Result<Vec<u8>, Self::Error>
fn write(&self, data: &[u8]) -> Result<Vec<u8>, Self::Error>
Write a blob, returning an id into a target vec
tgt
. Read moresourcefn needs_deep_detach(&self) -> bool
fn needs_deep_detach(&self) -> bool
True if the store needs deep detach. This is true for basically all stores except the special NoStore store