pub enum FileError {
}
Expand description
File errors
Variants§
MissingBlocks(Vec<BlockId>)
Missing blocks
MissingRootKey
Missing root key
InvalidBlockId
Invalid BlockId encountered in the tree
InvalidChildren
Too many or too few children of a block
InvalidKeys
Number of keys does not match number of children of a block
InvalidHeader
Invalid CommitHeader object content
BlockDeserializeError
Error deserializing content of a block
MetaDeserializeError
Error deserializing content of the RandomAccessFileMeta
AlreadySaved
Files are immutable, you cannot modify them and this one was already saved once. Create a new File for your new data (and delete the old one if needed)
TooBig
File is too big
NotFound
StorageError
EndOfFile
InvalidArgument
NotAFile
Trait Implementations§
Source§impl From<ObjectParseError> for FileError
impl From<ObjectParseError> for FileError
Source§fn from(e: ObjectParseError) -> Self
fn from(e: ObjectParseError) -> Self
Converts to this type from the input type.
Source§impl From<StorageError> for FileError
impl From<StorageError> for FileError
Source§fn from(e: StorageError) -> Self
fn from(e: StorageError) -> Self
Converts to this type from the input type.
impl Eq for FileError
impl StructuralPartialEq for FileError
Auto Trait Implementations§
impl Freeze for FileError
impl RefUnwindSafe for FileError
impl Send for FileError
impl Sync for FileError
impl Unpin for FileError
impl UnwindSafe for FileError
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