pub enum IoError {
Io {
path: String,
source: Error,
},
Parse {
context: String,
message: String,
},
Unsupported {
kind: String,
name: String,
context: String,
},
Mesh(String),
}Expand description
Errors raised while reading or writing OpenFOAM ASCII case files.
Variants§
Io
An underlying filesystem error (file missing, permission denied, …).
Fields
Parse
The token stream did not match the expected grammar.
Fields
Unsupported
A boundary-condition or field type that this reader does not yet support was encountered.
Fields
Mesh(String)
The parsed topology could not be assembled into a valid mesh.
Trait Implementations§
Source§impl Error for IoError
impl Error for IoError
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 IoError
impl !UnwindSafe for IoError
impl Freeze for IoError
impl Send for IoError
impl Sync for IoError
impl Unpin for IoError
impl UnsafeUnpin for IoError
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