pub trait TextEncoderStreamMethods<D: DomTypes> {
// Required methods
fn Readable(&self) -> DomRoot<D::ReadableStream>;
fn Writable(&self) -> DomRoot<D::WritableStream>;
fn Encoding(&self) -> DOMString;
fn Constructor(
global: &D::GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
) -> Fallible<DomRoot<D::TextEncoderStream>>;
}
Required Methods§
fn Readable(&self) -> DomRoot<D::ReadableStream>
fn Writable(&self) -> DomRoot<D::WritableStream>
fn Encoding(&self) -> DOMString
fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Fallible<DomRoot<D::TextEncoderStream>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.