Skip to main content

FileReaderMethods

pub trait FileReaderMethods<D: DomTypes> {
Show 21 methods // Required methods fn ReadAsArrayBuffer( &self, cx: &mut JSContext, blob: &D::Blob, ) -> Fallible<()>; fn ReadAsBinaryString( &self, cx: &mut JSContext, blob: &D::Blob, ) -> Fallible<()>; fn ReadAsText( &self, cx: &mut JSContext, blob: &D::Blob, encoding: Option<DOMString>, ) -> Fallible<()>; fn ReadAsDataURL(&self, cx: &mut JSContext, blob: &D::Blob) -> Fallible<()>; fn Abort(&self, _can_gc: CanGc); fn ReadyState(&self) -> u16; fn GetResult(&self, cx: SafeJSContext) -> Option<StringOrObject>; fn GetError(&self) -> Option<DomRoot<D::DOMException>>; fn GetOnloadstart( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnloadstart( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn GetOnprogress( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnprogress( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn GetOnload( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnload( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn GetOnabort( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnabort( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn GetOnerror( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnerror( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn GetOnloadend( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>; fn SetOnloadend( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, ); fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Fallible<DomRoot<D::FileReader>>;
}

Required Methods§

Source

fn ReadAsArrayBuffer(&self, cx: &mut JSContext, blob: &D::Blob) -> Fallible<()>

Source

fn ReadAsBinaryString(&self, cx: &mut JSContext, blob: &D::Blob) -> Fallible<()>

Source

fn ReadAsText( &self, cx: &mut JSContext, blob: &D::Blob, encoding: Option<DOMString>, ) -> Fallible<()>

Source

fn ReadAsDataURL(&self, cx: &mut JSContext, blob: &D::Blob) -> Fallible<()>

Source

fn Abort(&self, _can_gc: CanGc)

Source

fn ReadyState(&self) -> u16

Source

fn GetResult(&self, cx: SafeJSContext) -> Option<StringOrObject>

Source

fn GetError(&self) -> Option<DomRoot<D::DOMException>>

Source

fn GetOnloadstart( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnloadstart( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn GetOnprogress( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnprogress( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn GetOnload(&self, cx: &mut JSContext) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnload( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn GetOnabort(&self, cx: &mut JSContext) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnabort( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn GetOnerror(&self, cx: &mut JSContext) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnerror( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn GetOnloadend(&self, cx: &mut JSContext) -> Option<Rc<EventHandlerNonNull<D>>>

Source

fn SetOnloadend( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )

Source

fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Fallible<DomRoot<D::FileReader>>

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.

Implementors§