#[non_exhaustive]pub enum LoadError {
Corrupt(String),
IncompatibleVersion {
found: u32,
expected: u32,
},
HashChanged,
Invalid(Diagnostics),
}Expand description
Why a stored flow couldn’t be loaded.
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.
Corrupt(String)
The bytes are damaged, or aren’t a flow blob.
IncompatibleVersion
Saved with another blob layout. Compile the flow’s source again.
HashChanged
The source compiles, but to another hash than the one saved with it: this flow-runner reads the flow differently from the one that saved it. Tokens made before won’t run until rebound; compile the source again to accept the new hash.
Invalid(Diagnostics)
The source no longer compiles, e.g. it was saved by a newer flow-runner that knows an edition this one doesn’t.
Trait Implementations§
Source§impl Error for LoadError
impl Error for LoadError
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 LoadError
impl RefUnwindSafe for LoadError
impl Send for LoadError
impl Sync for LoadError
impl Unpin for LoadError
impl UnsafeUnpin for LoadError
impl UnwindSafe for LoadError
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