/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 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(crate) struct ReadableStreamBYOBRequest { reflector_: Reflector, } impl ReadableStreamBYOBRequestMethods for ReadableStreamBYOBRequest { /// fn GetView(&self, _cx: SafeJSContext) -> Option { // TODO None } /// fn Respond(&self, _bytes_written: u64) -> Fallible<()> { // TODO Err(Error::NotFound) } /// fn RespondWithNewView( &self, _view: js::gc::CustomAutoRooterGuard, ) -> Fallible<()> { // TODO Err(Error::NotFound) } }