pub struct SimpleBlob { /* private fields */ }
Expand description
A simple Blob implementation.
Implementations§
Trait Implementations§
Source§impl Blob for SimpleBlob
impl Blob for SimpleBlob
Source§impl Debug for SimpleBlob
impl Debug for SimpleBlob
Source§impl<'de> Deserialize<'de> for SimpleBlob
impl<'de> Deserialize<'de> for SimpleBlob
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for SimpleBlob
impl Ord for SimpleBlob
Source§fn cmp(&self, other: &SimpleBlob) -> Ordering
fn cmp(&self, other: &SimpleBlob) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SimpleBlob
impl PartialEq for SimpleBlob
Source§impl PartialOrd for SimpleBlob
impl PartialOrd for SimpleBlob
Source§impl Serialize for SimpleBlob
impl Serialize for SimpleBlob
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.
impl Eq for SimpleBlob
impl StructuralPartialEq for SimpleBlob
Auto Trait Implementations§
impl Freeze for SimpleBlob
impl RefUnwindSafe for SimpleBlob
impl Send for SimpleBlob
impl Sync for SimpleBlob
impl Unpin for SimpleBlob
impl UnwindSafe for SimpleBlob
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