Trait script::dom::bindings::codegen::Bindings::ReadableStreamDefaultReaderBinding::ReadableStreamDefaultReader_Binding::ReadableStreamDefaultReaderMethods
source · 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§
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>
Object Safety§
This trait is not object safe.