Trait script::dom::bindings::codegen::Bindings::ReadableStreamBYOBReaderBinding::ReadableStreamBYOBReader_Binding::ReadableStreamBYOBReaderMethods
source · pub trait ReadableStreamBYOBReaderMethods<D: DomTypes> {
// Required methods
fn Read(
&self,
view: CustomAutoRooterGuard<'_, ArrayBufferView>,
_can_gc: CanGc,
) -> Rc<Promise>;
fn ReleaseLock(&self) -> Result<(), Error>;
fn Closed(&self, _can_gc: CanGc) -> 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<ReadableStreamBYOBReader>>, Error>;
}
Required Methods§
fn Read( &self, view: CustomAutoRooterGuard<'_, ArrayBufferView>, _can_gc: CanGc, ) -> Rc<Promise>
fn ReleaseLock(&self) -> Result<(), Error>
fn Closed(&self, _can_gc: CanGc) -> 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<ReadableStreamBYOBReader>>, Error>
Object Safety§
This trait is not object safe.