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