pub trait IDBIndexMethods<D: DomTypes> {
// Required methods
fn Name(&self) -> DOMString;
fn SetName(&self, value: DOMString) -> ErrorResult;
fn ObjectStore(&self) -> DomRoot<D::IDBObjectStore>;
fn KeyPath(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>);
fn MultiEntry(&self) -> bool;
fn Unique(&self) -> bool;
fn OpenCursor(
&self,
cx: &mut JSContext,
query: HandleValue<'_>,
direction: IDBCursorDirection,
) -> Fallible<DomRoot<D::IDBRequest>>;
fn OpenKeyCursor(
&self,
cx: &mut JSContext,
query: HandleValue<'_>,
direction: IDBCursorDirection,
) -> Fallible<DomRoot<D::IDBRequest>>;
}Required Methods§
fn Name(&self) -> DOMString
fn SetName(&self, value: DOMString) -> ErrorResult
fn ObjectStore(&self) -> DomRoot<D::IDBObjectStore>
fn KeyPath(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>)
fn MultiEntry(&self) -> bool
fn Unique(&self) -> bool
fn OpenCursor( &self, cx: &mut JSContext, query: HandleValue<'_>, direction: IDBCursorDirection, ) -> Fallible<DomRoot<D::IDBRequest>>
fn OpenKeyCursor( &self, cx: &mut JSContext, query: HandleValue<'_>, direction: IDBCursorDirection, ) -> Fallible<DomRoot<D::IDBRequest>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".