use dom_struct::dom_struct;
use crate::dom::bindings::codegen::Bindings::ReadableStreamBYOBRequestBinding::ReadableStreamBYOBRequestMethods;
use crate::dom::bindings::import::module::{Error, Fallible};
use crate::dom::bindings::reflector::Reflector;
use crate::script_runtime::JSContext as SafeJSContext;
#[dom_struct]
pub struct ReadableStreamBYOBRequest {
reflector_: Reflector,
}
impl ReadableStreamBYOBRequestMethods<crate::DomTypeHolder> for ReadableStreamBYOBRequest {
fn GetView(&self, _cx: SafeJSContext) -> Option<js::typedarray::ArrayBufferView> {
None
}
fn Respond(&self, _bytes_written: u64) -> Fallible<()> {
Err(Error::NotFound)
}
fn RespondWithNewView(
&self,
_view: js::gc::CustomAutoRooterGuard<js::typedarray::ArrayBufferView>,
) -> Fallible<()> {
Err(Error::NotFound)
}
}