pub trait ReadableStreamDefaultControllerMethods<D: DomTypes> {
    // Required methods
    fn GetDesiredSize(&self) -> Option<f64>;
    fn Close(&self) -> Result<(), Error>;
    fn Enqueue(
        &self,
        cx: SafeJSContext,
        chunk: HandleValue<'_>,
        _can_gc: CanGc,
    ) -> Result<(), Error>;
    fn Error(&self, cx: SafeJSContext, e: HandleValue<'_>) -> Result<(), Error>;
}

Required Methods§

source

fn GetDesiredSize(&self) -> Option<f64>

source

fn Close(&self) -> Result<(), Error>

source

fn Enqueue( &self, cx: SafeJSContext, chunk: HandleValue<'_>, _can_gc: CanGc, ) -> Result<(), Error>

source

fn Error(&self, cx: SafeJSContext, e: HandleValue<'_>) -> Result<(), Error>

Implementors§