pub enum OutputSink {
Stdout,
Capture(String),
}Expand description
Where write/1/writeln/1/nl/0 send their bytes. The CLI/WASI shell
streams to process stdout (the v1 contract); the Tier-2 reactor has no
stdout in a V8 isolate, so it captures losslessly into a buffer that the
result JSON carries back to the host (docs/design/done/WASM_TIER2_PLAN.md D4).
Variants§
Stdout
Stream to process stdout immediately (native CLI / WASI).
Capture(String)
Capture into a buffer (reactor) — returned as the result’s output.
Auto Trait Implementations§
impl Freeze for OutputSink
impl RefUnwindSafe for OutputSink
impl Send for OutputSink
impl Sync for OutputSink
impl Unpin for OutputSink
impl UnsafeUnpin for OutputSink
impl UnwindSafe for OutputSink
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