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

Required Methods§

Source

fn GetView(&self, cx: SafeJSContext) -> Option<ArrayBufferView>

Source

fn Respond(&self, bytesWritten: u64, _can_gc: CanGc) -> Fallible<()>

Source

fn RespondWithNewView( &self, view: CustomAutoRooterGuard<'_, ArrayBufferView>, _can_gc: CanGc, ) -> Fallible<()>

Implementors§