Skip to main content

ReadableStreamBYOBRequestMethods

pub trait ReadableStreamBYOBRequestMethods<D: DomTypes> {
    // Required methods
    fn GetView(
        &self,
        cx: SafeJSContext,
    ) -> Option<RootedTraceableBox<HeapArrayBufferView>>;
    fn Respond(&self, cx: &mut JSContext, bytesWritten: u64) -> Fallible<()>;
    fn RespondWithNewView(
        &self,
        cx: &mut JSContext,
        view: CustomAutoRooterGuard<'_, ArrayBufferView>,
    ) -> Fallible<()>;
}

Required Methods§

Implementors§