pub trait FileMethods<D>where
D: DomTypes,{
// Required methods
fn Name(&self) -> DOMString;
fn LastModified(&self) -> i64;
fn WebkitRelativePath(&self) -> USVString;
fn Constructor(
cx: &mut JSContext,
global: &<D as DomTypes>::GlobalScope,
proto: Option<Handle<'_, *mut JSObject>>,
fileBits: Vec<ArrayBufferOrArrayBufferViewOrBlobOrString<D>>,
fileName: DOMString,
options: &FilePropertyBag,
) -> Result<Root<Dom<<D as DomTypes>::File>>, Error>;
}Required Methods§
fn Name(&self) -> DOMString
fn LastModified(&self) -> i64
fn WebkitRelativePath(&self) -> USVString
fn Constructor( cx: &mut JSContext, global: &<D as DomTypes>::GlobalScope, proto: Option<Handle<'_, *mut JSObject>>, fileBits: Vec<ArrayBufferOrArrayBufferViewOrBlobOrString<D>>, fileName: DOMString, options: &FilePropertyBag, ) -> Result<Root<Dom<<D as DomTypes>::File>>, Error>
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.