pub enum FileStoreError {
MalformedDB,
Io {
source: Error,
},
Vfs {
source: VfsError,
},
InvalidParameters,
}Variants§
Trait Implementations§
Source§impl Debug for FileStoreError
impl Debug for FileStoreError
Source§impl Display for FileStoreError
impl Display for FileStoreError
Source§impl Error for FileStoreError
impl Error for FileStoreError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for FileStoreError
impl From<Error> for FileStoreError
Source§impl From<VfsError> for FileStoreError
impl From<VfsError> for FileStoreError
Source§impl KVStore<FileStoreError> for FsKvStore
impl KVStore<FileStoreError> for FsKvStore
Source§fn create_bucket(&mut self, key: &[u8]) -> Result<(), FileStoreError>
fn create_bucket(&mut self, key: &[u8]) -> Result<(), FileStoreError>
creates a new bucket
Source§fn delete_record(&mut self, key: &[u8]) -> Result<(), FileStoreError>
fn delete_record(&mut self, key: &[u8]) -> Result<(), FileStoreError>
delete a data record (could also be a bucket)
Source§fn store_record(
&mut self,
key: &[u8],
value: &[u8],
) -> Result<(), FileStoreError>
fn store_record( &mut self, key: &[u8], value: &[u8], ) -> Result<(), FileStoreError>
store a data record
Source§fn fetch_record(&self, key: &[u8]) -> Result<Vec<u8>, FileStoreError>
fn fetch_record(&self, key: &[u8]) -> Result<Vec<u8>, FileStoreError>
fetch a data record
Source§fn list_records(
&self,
from: &[u8],
to: &[u8],
) -> Result<Vec<Vec<u8>>, FileStoreError>
fn list_records( &self, from: &[u8], to: &[u8], ) -> Result<Vec<Vec<u8>>, FileStoreError>
Auto Trait Implementations§
impl !RefUnwindSafe for FileStoreError
impl !UnwindSafe for FileStoreError
impl Freeze for FileStoreError
impl Send for FileStoreError
impl Sync for FileStoreError
impl Unpin for FileStoreError
impl UnsafeUnpin for FileStoreError
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
Source§impl<E> ExternalError for E
impl<E> ExternalError for E
fn into_lua_err(self) -> Error
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more