pub trait IDBTransactionMethods<D: DomTypes> {
Show 14 methods
// Required methods
fn ObjectStoreNames(&self) -> DomRoot<D::DOMStringList>;
fn Mode(&self) -> IDBTransactionMode;
fn Durability(&self) -> IDBTransactionDurability;
fn Db(&self) -> DomRoot<D::IDBDatabase>;
fn GetError(&self) -> Option<DomRoot<D::DOMException>>;
fn ObjectStore(
&self,
name: DOMString,
_can_gc: CanGc,
) -> Fallible<DomRoot<D::IDBObjectStore>>;
fn Commit(&self) -> Fallible<()>;
fn Abort(&self) -> Fallible<()>;
fn GetOnabort(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOnabort(
&self,
cx: &mut JSContext,
value: Option<Rc<EventHandlerNonNull<D>>>,
);
fn GetOncomplete(
&self,
cx: &mut JSContext,
) -> Option<Rc<EventHandlerNonNull<D>>>;
fn SetOncomplete(
&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 ObjectStoreNames(&self) -> DomRoot<D::DOMStringList>
fn Mode(&self) -> IDBTransactionMode
fn Durability(&self) -> IDBTransactionDurability
fn Db(&self) -> DomRoot<D::IDBDatabase>
fn GetError(&self) -> Option<DomRoot<D::DOMException>>
fn ObjectStore( &self, name: DOMString, _can_gc: CanGc, ) -> Fallible<DomRoot<D::IDBObjectStore>>
fn Commit(&self) -> Fallible<()>
fn Abort(&self) -> Fallible<()>
fn GetOnabort(&self, cx: &mut JSContext) -> Option<Rc<EventHandlerNonNull<D>>>
fn SetOnabort( &self, cx: &mut JSContext, value: Option<Rc<EventHandlerNonNull<D>>>, )
fn GetOncomplete( &self, cx: &mut JSContext, ) -> Option<Rc<EventHandlerNonNull<D>>>
fn SetOncomplete( &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".