pub trait FileMethods<D: DomTypes> {
    // Required methods
    fn Name(&self) -> DOMString;
    fn LastModified(&self) -> i64;
    fn Constructor(
        global: &D::GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        fileBits: Vec<ArrayBufferOrArrayBufferViewOrBlobOrString<D>>,
        fileName: DOMString,
        options: &FilePropertyBag,
    ) -> Fallible<DomRoot<D::File>>;
}

Required Methods§

Source

fn Name(&self) -> DOMString

Source

fn LastModified(&self) -> i64

Source

fn Constructor( global: &D::GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, fileBits: Vec<ArrayBufferOrArrayBufferViewOrBlobOrString<D>>, fileName: DOMString, options: &FilePropertyBag, ) -> Fallible<DomRoot<D::File>>

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§