Enum mongodb::options::CursorType [−][src]
#[non_exhaustive] pub enum CursorType { NonTailable, Tailable, TailableAwait, }
Expand description
Specifies the type of cursor to return from a find operation.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Default; close the cursor after the last document is received from the server.
Do not close the cursor after the last document is received from the server. If more results become available later, the cursor will return them.
Similar to Tailable
, except that the cursor should block on receiving more results if
none are available.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CursorType
impl Send for CursorType
impl Sync for CursorType
impl Unpin for CursorType
impl UnwindSafe for CursorType
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V