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§
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<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".