Struct rusty_v8::WasmStreaming [−][src]
The V8 interface for WebAssembly streaming compilation. When streaming compilation is initiated, V8 passes a Self object to the embedder such that the embedder can pass the input bytes for streaming compilation to V8.
Implementations
impl WasmStreaming
[src]
pub fn on_bytes_received(&mut self, data: &[u8])
[src]
Pass a new chunk of bytes to WebAssembly streaming compilation.
pub fn finish(self)
[src]
Should be called after all received bytes where passed to
Self::on_bytes_received()
to tell V8 that there will be no
more bytes. Does not have to be called after Self::abort()
has been called already.
pub fn abort(self, exception: Option<Local<'_, Value>>)
[src]
Abort streaming compilation. If {exception} has a value, then the promise associated with streaming compilation is rejected with that value. If {exception} does not have value, the promise does not get rejected.
Trait Implementations
impl Drop for WasmStreaming
[src]
Auto Trait Implementations
impl RefUnwindSafe for WasmStreaming
impl !Send for WasmStreaming
impl !Sync for WasmStreaming
impl Unpin for WasmStreaming
impl UnwindSafe for WasmStreaming
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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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>,