pub trait IDBObjectStoreMethods<D: DomTypes> {
Show 20 methods
// Required methods
fn Name(&self) -> DOMString;
fn SetName(&self, value: DOMString) -> ErrorResult;
fn KeyPath(&self, cx: &mut JSContext, retval: MutableHandleValue<'_>);
fn IndexNames(&self, _can_gc: CanGc) -> DomRoot<D::DOMStringList>;
fn Transaction(&self) -> DomRoot<D::IDBTransaction>;
fn AutoIncrement(&self) -> bool;
fn Put(
&self,
cx: &mut JSContext,
value: HandleValue<'_>,
key: HandleValue<'_>,
) -> Fallible<DomRoot<D::IDBRequest>>;
fn Add(
&self,
cx: &mut JSContext,
value: HandleValue<'_>,
key: HandleValue<'_>,
) -> Fallible<DomRoot<D::IDBRequest>>;
fn Delete(
&self,
cx: &mut JSContext,
query: HandleValue<'_>,
) -> Fallible<DomRoot<D::IDBRequest>>;
fn Clear(&self, cx: &mut JSContext) -> Fallible<DomRoot<D::IDBRequest>>;
fn Get(
&self,
cx: &mut JSContext,
query: HandleValue<'_>,
) -> Fallible<DomRoot<D::IDBRequest>>;
fn GetKey(
&self,
cx: &mut JSContext,
query: HandleValue<'_>,
) -> Fallible<DomRoot<D::IDBRequest>>;
fn GetAll(
&self,
cx: &mut JSContext,
query: HandleValue<'_>,
count: Option<u32>,
) -> Fallible<DomRoot<D::IDBRequest>>;
fn GetAllKeys(
&self,
cx: &mut JSContext,
query: HandleValue<'_>,
count: Option<u32>,
) -> Fallible<DomRoot<D::IDBRequest>>;
fn Count(
&self,
cx: &mut JSContext,
query: HandleValue<'_>,
) -> Fallible<DomRoot<D::IDBRequest>>;
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>>;
fn Index(&self, name: DOMString) -> Fallible<DomRoot<D::IDBIndex>>;
fn CreateIndex(
&self,
cx: &mut JSContext,
name: DOMString,
keyPath: StringOrStringSequence,
options: &IDBIndexParameters,
) -> Fallible<DomRoot<D::IDBIndex>>;
fn DeleteIndex(&self, name: DOMString) -> Fallible<()>;
}Required Methods§
fn Name(&self) -> DOMString
fn SetName(&self, value: DOMString) -> ErrorResult
fn KeyPath(&self, cx: &mut JSContext, retval: MutableHandleValue<'_>)
fn IndexNames(&self, _can_gc: CanGc) -> DomRoot<D::DOMStringList>
fn Transaction(&self) -> DomRoot<D::IDBTransaction>
fn AutoIncrement(&self) -> bool
fn Put( &self, cx: &mut JSContext, value: HandleValue<'_>, key: HandleValue<'_>, ) -> Fallible<DomRoot<D::IDBRequest>>
fn Add( &self, cx: &mut JSContext, value: HandleValue<'_>, key: HandleValue<'_>, ) -> Fallible<DomRoot<D::IDBRequest>>
fn Delete( &self, cx: &mut JSContext, query: HandleValue<'_>, ) -> Fallible<DomRoot<D::IDBRequest>>
fn Clear(&self, cx: &mut JSContext) -> Fallible<DomRoot<D::IDBRequest>>
fn Get( &self, cx: &mut JSContext, query: HandleValue<'_>, ) -> Fallible<DomRoot<D::IDBRequest>>
fn GetKey( &self, cx: &mut JSContext, query: HandleValue<'_>, ) -> Fallible<DomRoot<D::IDBRequest>>
fn GetAll( &self, cx: &mut JSContext, query: HandleValue<'_>, count: Option<u32>, ) -> Fallible<DomRoot<D::IDBRequest>>
fn GetAllKeys( &self, cx: &mut JSContext, query: HandleValue<'_>, count: Option<u32>, ) -> Fallible<DomRoot<D::IDBRequest>>
fn Count( &self, cx: &mut JSContext, query: HandleValue<'_>, ) -> Fallible<DomRoot<D::IDBRequest>>
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>>
fn Index(&self, name: DOMString) -> Fallible<DomRoot<D::IDBIndex>>
fn CreateIndex( &self, cx: &mut JSContext, name: DOMString, keyPath: StringOrStringSequence, options: &IDBIndexParameters, ) -> Fallible<DomRoot<D::IDBIndex>>
fn DeleteIndex(&self, name: DOMString) -> Fallible<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".