Trait script::dom::bindings::codegen::Bindings::FileReaderSyncBinding::FileReaderSync_Binding::FileReaderSyncMethods
source · pub trait FileReaderSyncMethods {
// Required methods
fn ReadAsArrayBuffer(
&self,
cx: SafeJSContext,
blob: &Blob,
) -> Result<ArrayBuffer, Error>;
fn ReadAsBinaryString(&self, blob: &Blob) -> Result<DOMString, Error>;
fn ReadAsText(
&self,
blob: &Blob,
label: Option<DOMString>,
) -> Result<DOMString, Error>;
fn ReadAsDataURL(&self, blob: &Blob) -> Result<DOMString, Error>;
fn Constructor(
global: &GlobalScope,
proto: Option<HandleObject<'_>>,
can_gc: CanGc,
) -> Result<Root<Dom<FileReaderSync>>, Error>;
}
Required Methods§
fn ReadAsArrayBuffer( &self, cx: SafeJSContext, blob: &Blob, ) -> Result<ArrayBuffer, Error>
fn ReadAsBinaryString(&self, blob: &Blob) -> Result<DOMString, Error>
fn ReadAsText( &self, blob: &Blob, label: Option<DOMString>, ) -> Result<DOMString, Error>
fn ReadAsDataURL(&self, blob: &Blob) -> Result<DOMString, Error>
fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, ) -> Result<Root<Dom<FileReaderSync>>, Error>
Object Safety§
This trait is not object safe.