#[non_exhaustive]pub enum SidecarIoError {
CreateDir {
path: PathBuf,
source: Error,
},
Read {
path: PathBuf,
source: Error,
},
Write {
path: PathBuf,
source: Error,
},
Encode {
path: PathBuf,
source: Error,
},
Decode {
path: PathBuf,
source: Error,
},
}Expand description
Error raised by SystemSidecar load/store operations.
Each variant carries the path it was operating on so callers can surface a useful diagnostic when they convert into their own error type.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
CreateDir
Creating the _system/ parent directory failed.
Read
Reading the sidecar file failed.
Write
Writing the temp file, renaming, or fsyncing failed.
Encode
Serializing the document to JSON failed.
Fields
Decode
Parsing the sidecar file as JSON failed.
Trait Implementations§
Source§impl Debug for SidecarIoError
impl Debug for SidecarIoError
Source§impl Display for SidecarIoError
impl Display for SidecarIoError
Source§impl Error for SidecarIoError
impl Error for SidecarIoError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SidecarIoError
impl !UnwindSafe for SidecarIoError
impl Freeze for SidecarIoError
impl Send for SidecarIoError
impl Sync for SidecarIoError
impl Unpin for SidecarIoError
impl UnsafeUnpin for SidecarIoError
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