pub trait BlobMethods {
    // Required methods
    fn Size(&self) -> u64;
    fn Type(&self) -> DOMString;
    fn Slice(
        &self,
        start: Option<i64>,
        end: Option<i64>,
        contentType: Option<DOMString>
    ) -> Root<Dom<Blob>>;
    fn Stream(&self, cx: SafeJSContext) -> NonNull<JSObject>;
    fn Text(&self) -> Rc<Promise>;
    fn ArrayBuffer(&self) -> Rc<Promise>;
}

Required Methods§

source

fn Size(&self) -> u64

source

fn Type(&self) -> DOMString

source

fn Slice( &self, start: Option<i64>, end: Option<i64>, contentType: Option<DOMString> ) -> Root<Dom<Blob>>

source

fn Stream(&self, cx: SafeJSContext) -> NonNull<JSObject>

source

fn Text(&self) -> Rc<Promise>

source

fn ArrayBuffer(&self) -> Rc<Promise>

Implementors§