pub trait IDBRequestMethods<D: DomTypes> {
// Required methods
fn GetResult(
&self,
cx: SafeJSContext,
retval: MutableHandleValue<'_>,
) -> Fallible<()>;
fn GetError(&self) -> Fallible<Option<DomRoot<D::DOMException>>>;
fn GetSource(&self) -> Option<DomRoot<D::IDBObjectStore>>;
fn GetTransaction(&self) -> Option<DomRoot<D::IDBTransaction>>;
fn ReadyState(&self) -> IDBRequestReadyState;
fn GetOnsuccess(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOnsuccess(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
fn GetOnerror(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOnerror(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
}Required Methods§
fn GetResult( &self, cx: SafeJSContext, retval: MutableHandleValue<'_>, ) -> Fallible<()>
fn GetError(&self) -> Fallible<Option<DomRoot<D::DOMException>>>
fn GetSource(&self) -> Option<DomRoot<D::IDBObjectStore>>
fn GetTransaction(&self) -> Option<DomRoot<D::IDBTransaction>>
fn ReadyState(&self) -> IDBRequestReadyState
fn GetOnsuccess(&self, cx: &mut JSContext) -> Option<Rc<EventHandlerNonNull<D>>>
fn SetOnsuccess( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )
fn GetOnerror(&self, cx: &mut JSContext) -> Option<Rc<EventHandlerNonNull<D>>>
fn SetOnerror( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".