[][src]Struct yew::services::reader::File

pub struct File(_);

The File interface provides information about files and allows JavaScript in a web page to access their content.

(JavaScript docs)

Methods

impl File[src]

pub fn name(&self) -> String[src]

Returns the name of the file referenced by the File object.

(JavaScript docs)

Trait Implementations

impl From<File> for Blob[src]

impl AsRef<Reference> for File[src]

impl TryFrom<Value> for File[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Reference> for File[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Blob> for File[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl<'_r> TryFrom<&'_r Value> for File[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl TryFrom<Reference> for File[src]

type Error = ConversionError

The type returned in the event of a conversion error.

impl InstanceOf for File[src]

impl JsSerialize for File[src]

impl Debug for File[src]

impl Clone for File[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl ReferenceType for File[src]

impl Eq for File[src]

impl PartialEq<File> for File[src]

impl IBlob for File[src]

fn len(&self) -> u64[src]

The size, in bytes, of the data contained in the Blob object. Read more

fn mime(&self) -> Option<String>[src]

A string indicating the MIME type of the data contained in the Blob. Read more

fn slice<T>(&self, range: T) -> Blob where
    T: RangeBounds<u64>, 
[src]

Create a new Blob object containing the data in the specified range of bytes of the source Blob. Read more

fn slice_with_content_type<T>(&self, range: T, content_type: &str) -> Blob where
    T: RangeBounds<u64>, 
[src]

slice Blob with the provided content_type.

Auto Trait Implementations

impl Sync for File

impl Send for File

impl Unpin for File

impl RefUnwindSafe for File

impl UnwindSafe for File

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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.

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

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

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

impl<T> Any for T where
    T: Any
[src]

impl<T> CloneAny for T where
    T: Clone + Any
[src]

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.

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]