[][src]Struct web_sys::FileReaderSync

#[repr(transparent)]pub struct FileReaderSync { /* fields omitted */ }

The FileReaderSync class.

MDN Documentation

This API requires the following crate features to be activated: FileReaderSync

Methods

impl FileReaderSync[src]

pub fn new() -> Result<FileReaderSync, JsValue>[src]

The new FileReaderSync(..) constructor, creating a new instance of FileReaderSync.

MDN Documentation

This API requires the following crate features to be activated: FileReaderSync

impl FileReaderSync[src]

pub fn read_as_array_buffer(&self, blob: &Blob) -> Result<ArrayBuffer, JsValue>[src]

The readAsArrayBuffer() method.

MDN Documentation

This API requires the following crate features to be activated: Blob, FileReaderSync

impl FileReaderSync[src]

pub fn read_as_binary_string(&self, blob: &Blob) -> Result<String, JsValue>[src]

The readAsBinaryString() method.

MDN Documentation

This API requires the following crate features to be activated: Blob, FileReaderSync

impl FileReaderSync[src]

pub fn read_as_data_url(&self, blob: &Blob) -> Result<String, JsValue>[src]

The readAsDataURL() method.

MDN Documentation

This API requires the following crate features to be activated: Blob, FileReaderSync

impl FileReaderSync[src]

pub fn read_as_text(&self, blob: &Blob) -> Result<String, JsValue>[src]

The readAsText() method.

MDN Documentation

This API requires the following crate features to be activated: Blob, FileReaderSync

impl FileReaderSync[src]

pub fn read_as_text_with_encoding(
    &self,
    blob: &Blob,
    encoding: &str
) -> Result<String, JsValue>
[src]

The readAsText() method.

MDN Documentation

This API requires the following crate features to be activated: Blob, FileReaderSync

Trait Implementations

impl AsRef<FileReaderSync> for FileReaderSync[src]

impl AsRef<JsValue> for FileReaderSync[src]

impl AsRef<Object> for FileReaderSync[src]

impl Clone for FileReaderSync[src]

impl Debug for FileReaderSync[src]

impl Deref for FileReaderSync[src]

type Target = Object

The resulting type after dereferencing.

impl Eq for FileReaderSync[src]

impl From<FileReaderSync> for JsValue[src]

impl From<FileReaderSync> for Object[src]

impl From<JsValue> for FileReaderSync[src]

impl FromWasmAbi for FileReaderSync[src]

type Abi = <JsValue as FromWasmAbi>::Abi

The wasm ABI type that this converts from when coming back out from the ABI boundary. Read more

impl IntoWasmAbi for FileReaderSync[src]

type Abi = <JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl<'a> IntoWasmAbi for &'a FileReaderSync[src]

type Abi = <&'a JsValue as IntoWasmAbi>::Abi

The wasm ABI type that this converts into when crossing the ABI boundary. Read more

impl JsCast for FileReaderSync[src]

impl OptionFromWasmAbi for FileReaderSync[src]

impl OptionIntoWasmAbi for FileReaderSync[src]

impl<'a> OptionIntoWasmAbi for &'a FileReaderSync[src]

impl PartialEq<FileReaderSync> for FileReaderSync[src]

impl RefFromWasmAbi for FileReaderSync[src]

type Abi = <JsValue as RefFromWasmAbi>::Abi

The wasm ABI type references to Self are recovered from.

type Anchor = ManuallyDrop<FileReaderSync>

The type that holds the reference to Self for the duration of the invocation of the function that has an &Self parameter. This is required to ensure that the lifetimes don't persist beyond one function call, and so that they remain anonymous. Read more

impl StructuralEq for FileReaderSync[src]

impl StructuralPartialEq for FileReaderSync[src]

impl WasmDescribe for FileReaderSync[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ReturnWasmAbi for T where
    T: IntoWasmAbi
[src]

type Abi = <T as IntoWasmAbi>::Abi

Same as IntoWasmAbi::Abi

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.