Struct fdb_rl::cursor::CursorFilter
source · pub struct CursorFilter<T, C, F>where
T: Send,
C: Cursor<T>,{
cursor: C,
f: F,
phantom: PhantomData<T>,
}
Expand description
Cursor returned by Cursor::filter
method.
Fields§
§cursor: C
§f: F
§phantom: PhantomData<T>
Trait Implementations§
source§impl<T, C, F, Fut> Cursor<T> for CursorFilter<T, C, F>where
T: Send,
C: Cursor<T> + Send,
F: FnMut(&T) -> Fut + Send,
Fut: Future<Output = bool> + Send,
impl<T, C, F, Fut> Cursor<T> for CursorFilter<T, C, F>where T: Send, C: Cursor<T> + Send, F: FnMut(&T) -> Fut + Send, Fut: Future<Output = bool> + Send,
source§async fn next(&mut self) -> CursorResult<T>
async fn next(&mut self) -> CursorResult<T>
Asynchronously return the next result from this cursor.
source§fn collect(self) -> impl Future<Output = (Vec<T>, CursorError)> + Sendwhere
Self: Sized + Send,
fn collect(self) -> impl Future<Output = (Vec<T>, CursorError)> + Sendwhere Self: Sized + Send,
Drain the cursor pushing all emitted values into a collection.
source§impl<T, C, F: Debug> Debug for CursorFilter<T, C, F>where
T: Send + Debug,
C: Cursor<T> + Debug,
impl<T, C, F: Debug> Debug for CursorFilter<T, C, F>where T: Send + Debug, C: Cursor<T> + Debug,
impl<T, C, F> Sealed for CursorFilter<T, C, F>where T: Send, C: Cursor<T>,
Auto Trait Implementations§
impl<T, C, F> RefUnwindSafe for CursorFilter<T, C, F>where C: RefUnwindSafe, F: RefUnwindSafe, T: RefUnwindSafe,
impl<T, C, F> Send for CursorFilter<T, C, F>where C: Send, F: Send,
impl<T, C, F> Sync for CursorFilter<T, C, F>where C: Sync, F: Sync, T: Sync,
impl<T, C, F> Unpin for CursorFilter<T, C, F>where C: Unpin, F: Unpin, T: Unpin,
impl<T, C, F> UnwindSafe for CursorFilter<T, C, F>where C: UnwindSafe, F: UnwindSafe, T: 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