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>,
        _can_gc: CanGc,
    ) -> Root<Dom<Blob>>;
    fn Stream(&self, cx: SafeJSContext, _can_gc: CanGc) -> NonNull<JSObject>;
    fn Text(&self, _can_gc: CanGc) -> Rc<Promise>;
    fn ArrayBuffer(&self, _can_gc: CanGc) -> Rc<Promise>;
    fn Constructor(
        global: &GlobalScope,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        blobParts: Option<Vec<ArrayBufferOrArrayBufferViewOrBlobOrString>>,
        options: &BlobPropertyBag,
    ) -> Result<Root<Dom<Blob>>, Error>;
}

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>, _can_gc: CanGc, ) -> Root<Dom<Blob>>

source

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

source

fn Text(&self, _can_gc: CanGc) -> Rc<Promise>

source

fn ArrayBuffer(&self, _can_gc: CanGc) -> Rc<Promise>

source

fn Constructor( global: &GlobalScope, proto: Option<HandleObject<'_>>, can_gc: CanGc, blobParts: Option<Vec<ArrayBufferOrArrayBufferViewOrBlobOrString>>, options: &BlobPropertyBag, ) -> Result<Root<Dom<Blob>>, Error>

Object Safety§

This trait is not object safe.

Implementors§