pub enum FsError {
MissingInput,
InvalidArgument(&'static str, FsIo),
}
Expand description
Errors that can occur during any filesystem coroutine progression.
Only coroutine misuses should lead to these error variants.
Variants§
MissingInput
The coroutine input is missing or has already been used.
Occurs when the coroutine is called twice without processing I/O requests, which should not happen if the runtime process correctly I/O requests.
InvalidArgument(&'static str, FsIo)
The coroutine received an invalid argument.
Occurs when the coroutine receives an I/O response from another coroutine, which should not happen if the runtime maps correctly the arguments.
Trait Implementations§
Source§impl Error for FsError
impl Error for FsError
1.30.0 · 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 Freeze for FsError
impl RefUnwindSafe for FsError
impl Send for FsError
impl Sync for FsError
impl Unpin for FsError
impl UnwindSafe for FsError
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