pub trait ReadableStreamDefaultControllerMethods<D>where
D: DomTypes,{
// Required methods
fn GetDesiredSize(&self) -> Option<f64>;
fn Close(&self, cx: &mut JSContext) -> Result<(), Error>;
fn Enqueue(
&self,
cx: &mut JSContext,
chunk: Handle<'_, Value>,
) -> Result<(), Error>;
fn Error(
&self,
cx: &mut JSContext,
e: Handle<'_, Value>,
) -> Result<(), Error>;
}Required Methods§
fn GetDesiredSize(&self) -> Option<f64>
fn Close(&self, cx: &mut JSContext) -> Result<(), Error>
fn Enqueue( &self, cx: &mut JSContext, chunk: Handle<'_, Value>, ) -> Result<(), Error>
fn Error(&self, cx: &mut JSContext, e: Handle<'_, Value>) -> Result<(), Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".