pub enum RealmFileError {
Io(Error),
InvalidRealmFile {
reason: String,
},
Unsupported {
reason: String,
},
}
Expand description
Errors that occur while reading a Realm file, such as I/O errors or invalid file formats.
Variants§
Io(Error)
Error occurred while reading the file.
InvalidRealmFile
The Realm file is invalid, e.g. due to corrupted data.
Unsupported
The Realm file uses a feature that is not supported by this version of the library.
Trait Implementations§
Source§impl Debug for RealmFileError
impl Debug for RealmFileError
Source§impl Display for RealmFileError
impl Display for RealmFileError
Source§impl Error for RealmFileError
impl Error for RealmFileError
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 RealmFileError
impl From<Error> for RealmFileError
Source§impl From<RealmFileError> for TableError
impl From<RealmFileError> for TableError
Source§fn from(source: RealmFileError) -> Self
fn from(source: RealmFileError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RealmFileError
impl !RefUnwindSafe for RealmFileError
impl Send for RealmFileError
impl Sync for RealmFileError
impl Unpin for RealmFileError
impl !UnwindSafe for RealmFileError
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