pub trait IDBCursorMethods<D: DomTypes> {
// Required methods
fn Source(&self) -> IDBObjectStoreOrIDBIndex<D>;
fn Direction(&self) -> IDBCursorDirection;
fn Key(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>);
fn PrimaryKey(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>);
fn Request(&self) -> DomRoot<D::IDBRequest>;
fn Advance(&self, cx: &mut JSContext, count: u32) -> Fallible<()>;
fn Continue(&self, cx: &mut JSContext, key: HandleValue<'_>) -> Fallible<()>;
fn ContinuePrimaryKey(
&self,
cx: &mut JSContext,
key: HandleValue<'_>,
primaryKey: HandleValue<'_>,
) -> Fallible<()>;
fn Update(
&self,
cx: &mut JSContext,
value: HandleValue<'_>,
) -> Fallible<DomRoot<D::IDBRequest>>;
fn Delete(&self, cx: &mut JSContext) -> Fallible<DomRoot<D::IDBRequest>>;
}Required Methods§
fn Source(&self) -> IDBObjectStoreOrIDBIndex<D>
fn Direction(&self) -> IDBCursorDirection
fn Key(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>)
fn PrimaryKey(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>)
fn Request(&self) -> DomRoot<D::IDBRequest>
fn Advance(&self, cx: &mut JSContext, count: u32) -> Fallible<()>
fn Continue(&self, cx: &mut JSContext, key: HandleValue<'_>) -> Fallible<()>
fn ContinuePrimaryKey( &self, cx: &mut JSContext, key: HandleValue<'_>, primaryKey: HandleValue<'_>, ) -> Fallible<()>
fn Update( &self, cx: &mut JSContext, value: HandleValue<'_>, ) -> Fallible<DomRoot<D::IDBRequest>>
fn Delete(&self, cx: &mut JSContext) -> Fallible<DomRoot<D::IDBRequest>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".