pub struct CursorBuilder<Err> { /* private fields */ }
Expand description
Helper to build cursors over ObjectStore
s
Implementations§
Source§impl<Err> CursorBuilder<Err>
impl<Err> CursorBuilder<Err>
Sourcepub fn open(self) -> impl Future<Output = Result<Cursor<Err>, Err>>
pub fn open(self) -> impl Future<Output = Result<Cursor<Err>, Err>>
Open the cursor
Internally, this uses IDBObjectStore::openCursor
.
Sourcepub fn open_key(self) -> impl Future<Output = Result<Cursor<Err>, Err>>
pub fn open_key(self) -> impl Future<Output = Result<Cursor<Err>, Err>>
Open the cursor as a key-only cursor
Internally, this uses IDBObjectStore::openKeyCursor
.
Sourcepub fn range(self, range: impl RangeBounds<JsValue>) -> Result<Self, Err>
pub fn range(self, range: impl RangeBounds<JsValue>) -> Result<Self, Err>
Limit the range of the cursor
Internally, this sets this property.
Sourcepub fn direction(self, direction: CursorDirection) -> Self
pub fn direction(self, direction: CursorDirection) -> Self
Define the direction of the cursor
Internally, this sets this property.
Auto Trait Implementations§
impl<Err> Freeze for CursorBuilder<Err>
impl<Err> RefUnwindSafe for CursorBuilder<Err>where
Err: RefUnwindSafe,
impl<Err> !Send for CursorBuilder<Err>
impl<Err> !Sync for CursorBuilder<Err>
impl<Err> Unpin for CursorBuilder<Err>where
Err: Unpin,
impl<Err> UnwindSafe for CursorBuilder<Err>where
Err: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more