pub trait ReadableStreamDefaultReaderMethods<D: DomTypes> {
    // Required methods
    fn Read(&self, _can_gc: CanGc) -> Rc<Promise>;
    fn ReleaseLock(&self);
    fn Closed(&self) -> Rc<Promise>;
    fn Cancel(
        &self,
        cx: SafeJSContext,
        reason: HandleValue<'_>,
        _can_gc: CanGc,
    ) -> Rc<Promise>;
    fn Constructor(
        global: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        stream: &ReadableStream,
    ) -> Result<Root<Dom<ReadableStreamDefaultReader>>, Error>;
}

Required Methods§

source

fn Read(&self, _can_gc: CanGc) -> Rc<Promise>

source

fn ReleaseLock(&self)

source

fn Closed(&self) -> Rc<Promise>

source

fn Cancel( &self, cx: SafeJSContext, reason: HandleValue<'_>, _can_gc: CanGc, ) -> Rc<Promise>

source

fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, stream: &ReadableStream, ) -> Result<Root<Dom<ReadableStreamDefaultReader>>, Error>

Object Safety§

This trait is not object safe.

Implementors§