#[non_exhaustive]pub enum ApplyError {
NotAttached,
VmChanged,
Invalid {
name: Name,
reason: ApplyInvalid,
},
StopArgs(VmError),
}Expand description
A failure of apply.
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.
NotAttached
There is no script (a Repl made with from_program or empty). Also returned while input is running.
VmChanged
Since the stop point at attach, vm advanced or was reloaded (resume, restore, load), or it is another Vm.
Invalid
A value to apply failed a check of type, limits or saveable shape.
StopArgs(VmError)
The arguments of the stop point could not be rebuilt with the applied values (runtime error).
Trait Implementations§
Source§impl Clone for ApplyError
impl Clone for ApplyError
Source§impl Debug for ApplyError
impl Debug for ApplyError
Source§impl PartialEq for ApplyError
impl PartialEq for ApplyError
impl StructuralPartialEq for ApplyError
Auto Trait Implementations§
impl Forget for ApplyError
impl Freeze for ApplyError
impl Move for ApplyError
impl RefUnwindSafe for ApplyError
impl Send for ApplyError
impl Sync for ApplyError
impl Unpin for ApplyError
impl UnsafeUnpin for ApplyError
impl UnwindSafe for ApplyError
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