pub enum CompileOutcome {
Success {
wasm_bytes: Vec<u8>,
compilation_ms: u64,
},
TargetNotInstalled {
attempted_target: String,
},
CompilationFailed {
stderr: String,
compilation_ms: u64,
},
CompilerNotFound {
error: String,
},
}Expand description
Result of the rustc --target wasm32-wasi compilation step.
Variants§
Success
TargetNotInstalled
The wasm32-wasi (or wasm32-wasip1) target is not installed.
CompilationFailed
rustc ran but returned a non-zero exit code.
CompilerNotFound
rustc could not be spawned (not on PATH, OS error, etc.).
Trait Implementations§
Source§impl Clone for CompileOutcome
impl Clone for CompileOutcome
Source§fn clone(&self) -> CompileOutcome
fn clone(&self) -> CompileOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CompileOutcome
impl Debug for CompileOutcome
Source§impl<'de> Deserialize<'de> for CompileOutcome
impl<'de> Deserialize<'de> for CompileOutcome
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CompileOutcome
impl RefUnwindSafe for CompileOutcome
impl Send for CompileOutcome
impl Sync for CompileOutcome
impl Unpin for CompileOutcome
impl UnsafeUnpin for CompileOutcome
impl UnwindSafe for CompileOutcome
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