pub trait ReadableStreamBYOBRequestMethods<D: DomTypes> {
// Required methods
fn GetView(
&self,
cx: SafeJSContext,
) -> Option<RootedTraceableBox<HeapArrayBufferView>>;
fn Respond(&self, bytesWritten: u64, _can_gc: CanGc) -> Fallible<()>;
fn RespondWithNewView(
&self,
view: CustomAutoRooterGuard<'_, ArrayBufferView>,
_can_gc: CanGc,
) -> Fallible<()>;
}Required Methods§
fn GetView( &self, cx: SafeJSContext, ) -> Option<RootedTraceableBox<HeapArrayBufferView>>
fn Respond(&self, bytesWritten: u64, _can_gc: CanGc) -> Fallible<()>
fn RespondWithNewView( &self, view: CustomAutoRooterGuard<'_, ArrayBufferView>, _can_gc: CanGc, ) -> Fallible<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".