/* 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 js::rust::HandleValue as SafeHandleValue; use crate::dom::bindings::codegen::Bindings::ReadableByteStreamControllerBinding::ReadableByteStreamControllerMethods; use crate::dom::bindings::import::module::{Error, Fallible}; use crate::dom::bindings::reflector::Reflector; use crate::dom::bindings::root::DomRoot; use crate::script_runtime::JSContext as SafeJSContext; /// #[dom_struct] pub struct ReadableByteStreamController { reflector_: Reflector, } impl ReadableByteStreamControllerMethods for ReadableByteStreamController { /// fn GetByobRequest( &self, ) -> Fallible>> { // TODO Err(Error::NotFound) } /// fn GetDesiredSize(&self) -> Option { // TODO None } /// fn Close(&self) -> Fallible<()> { // TODO Err(Error::NotFound) } /// fn Enqueue( &self, _chunk: js::gc::CustomAutoRooterGuard, ) -> Fallible<()> { // TODO Err(Error::NotFound) } /// fn Error(&self, _cx: SafeJSContext, _e: SafeHandleValue) -> Fallible<()> { // TODO Err(Error::NotFound) } }