Struct radixdb::store::PagedFileStore
source · [−]pub struct PagedFileStore(_);
Expand description
A blob store backed by a file that is divided into pages of size SIZE
Implementations
Trait Implementations
sourceimpl BlobStore for PagedFileStore
impl BlobStore for PagedFileStore
sourcefn read(&self, id: &[u8]) -> Result<Blob<'static>>
fn read(&self, id: &[u8]) -> Result<Blob<'static>>
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>>
fn write(&self, data: &[u8]) -> Result<Vec<u8>>
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
sourceimpl Clone for PagedFileStore
impl Clone for PagedFileStore
sourcefn clone(&self) -> PagedFileStore
fn clone(&self) -> PagedFileStore
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations
impl !RefUnwindSafe for PagedFileStore
impl Send for PagedFileStore
impl Sync for PagedFileStore
impl Unpin for PagedFileStore
impl !UnwindSafe for PagedFileStore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more