Enum wasmtime_environ::wasm::wasmparser::ValidPayload
source · [−]pub enum ValidPayload<'a> {
Ok,
Push(Parser, Validator),
Pop,
Func(FuncValidator<ValidatorResources>, FunctionBody<'a>),
}
Expand description
Possible return values from Validator::payload
.
Variants
Ok
The payload validated, no further action need be taken.
Push(Parser, Validator)
The payload validated, but it started a nested module.
This result indicates that the current validator needs to be saved until later. The returned parser and validator should be used instead.
Pop
The payload validated, and the current validator is finished. The last validator that was in use should be popped off the stack to resume.
Func(FuncValidator<ValidatorResources>, FunctionBody<'a>)
A function was found to be validate.
Auto Trait Implementations
impl<'a> RefUnwindSafe for ValidPayload<'a>
impl<'a> Send for ValidPayload<'a>
impl<'a> Sync for ValidPayload<'a>
impl<'a> Unpin for ValidPayload<'a>
impl<'a> UnwindSafe for ValidPayload<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more