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