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§

Object Safety§

This trait is not object safe.

Implementors§