Enum wiggle::Trap [−][src]
A runtime-independent way for Wiggle to terminate WebAssembly execution.
Functions that are marked (@witx noreturn)
will always return a Trap.
Other functions that want to Trap can do so via their UserErrorConversion
trait, which transforms the user’s own error type into a Result<abierror, Trap>
.
Variants
I32Exit(i32)
A Trap which indicates an i32 (posix-style) exit code. Runtimes may have a special way of dealing with this for WASI embeddings and otherwise.
String(String)
Any other Trap is just an unstructured String, for reporting and debugging.
Trait Implementations
impl Clone for Trap
[src]
impl Debug for Trap
[src]
impl Eq for Trap
[src]
impl From<GuestError> for Trap
[src]
fn from(err: GuestError) -> Trap
[src]
impl PartialEq<Trap> for Trap
[src]
impl StructuralEq for Trap
[src]
impl StructuralPartialEq for Trap
[src]
Auto Trait Implementations
impl RefUnwindSafe for Trap
impl Send for Trap
impl Sync for Trap
impl Unpin for Trap
impl UnwindSafe for Trap
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointee for T
[src]
type Pointer = u32
pub fn debug(<T as Pointee>::Pointer, &mut Formatter<'_>) -> Result<(), Error>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,