pub struct FileSystem { /* private fields */ }Expand description
An implementation of a BlobStore using a folder on a file system.
Implementations§
Trait Implementations§
Source§impl Debug for FileSystem
impl Debug for FileSystem
Source§impl Store<SimpleBlob, FileSystemIter> for FileSystem
impl Store<SimpleBlob, FileSystemIter> for FileSystem
Source§fn put_from<R: Read>(&mut self, key: &str, r: &mut R) -> Result<usize, Error>
fn put_from<R: Read>(&mut self, key: &str, r: &mut R) -> Result<usize, Error>
Save the content of r into the storage system with the given
key.
Source§fn get_to<W: Write>(&mut self, key: &str, w: &mut W) -> Result<usize, Error>
fn get_to<W: Write>(&mut self, key: &str, w: &mut W) -> Result<usize, Error>
Read the contents of the blob with the given key into the
given writer.
Source§fn prefix(&mut self, prefix: &str) -> FileSystemIter ⓘ
fn prefix(&mut self, prefix: &str) -> FileSystemIter ⓘ
Find all blobs that have the given prefix and iterate over
them.
Source§fn put(&mut self, key: &str, data: &[u8]) -> Result<(), Error>
fn put(&mut self, key: &str, data: &[u8]) -> Result<(), Error>
Similar to put_from but uses the give data instead of a
reader.
Auto Trait Implementations§
impl !RefUnwindSafe for FileSystem
impl !UnwindSafe for FileSystem
impl Freeze for FileSystem
impl Send for FileSystem
impl Sync for FileSystem
impl Unpin for FileSystem
impl UnsafeUnpin for FileSystem
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