Trait script::dom::bindings::codegen::Bindings::BlobBinding::Blob_Binding::BlobMethods
source · pub trait BlobMethods<D: DomTypes> {
// 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§
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>
Object Safety§
This trait is not object safe.