pub enum GraphFileError {
Read {
path: String,
source: Error,
},
Parse {
path: String,
source: Error,
},
Write {
path: String,
source: Error,
},
Serialize {
path: String,
source: Error,
},
InconsistentGraphId,
}Expand description
Errors for reading/writing graph files.
Variants§
Read
Read failure.
Parse
JSON parse failure.
Write
Write failure.
Serialize
JSON serialization failure.
InconsistentGraphId
Wrapper id mismatch.
Trait Implementations§
Source§impl Debug for GraphFileError
impl Debug for GraphFileError
Source§impl Display for GraphFileError
impl Display for GraphFileError
Source§impl Error for GraphFileError
impl Error for GraphFileError
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 GraphFileError
impl !UnwindSafe for GraphFileError
impl Freeze for GraphFileError
impl Send for GraphFileError
impl Sync for GraphFileError
impl Unpin for GraphFileError
impl UnsafeUnpin for GraphFileError
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