Skip to main content

IDBCursorMethods

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§

Source

fn Source(&self) -> IDBObjectStoreOrIDBIndex<D>

Source

fn Direction(&self) -> IDBCursorDirection

Source

fn Key(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>)

Source

fn PrimaryKey(&self, cx: &mut JSContext, retval: MutableHandle<'_, Value>)

Source

fn Request(&self) -> DomRoot<D::IDBRequest>

Source

fn Advance(&self, cx: &mut JSContext, count: u32) -> Fallible<()>

Source

fn Continue(&self, cx: &mut JSContext, key: HandleValue<'_>) -> Fallible<()>

Source

fn ContinuePrimaryKey( &self, cx: &mut JSContext, key: HandleValue<'_>, primaryKey: HandleValue<'_>, ) -> Fallible<()>

Source

fn Update( &self, cx: &mut JSContext, value: HandleValue<'_>, ) -> Fallible<DomRoot<D::IDBRequest>>

Source

fn Delete(&self, cx: &mut JSContext) -> Fallible<DomRoot<D::IDBRequest>>

Implementors§