Struct rincon_session::CursorSession [] [src]

pub struct CursorSession<T, C> { /* fields omitted */ }

A session for operating with a specific Cursor.

Methods

impl<T, C> CursorSession<T, C> where
    T: 'static + DeserializeOwned,
    C: 'static + Connector
[src]

[src]

Returns the name of the database the query has been executed for.

[src]

Returns the Cursor entity of this session.

[src]

Unwraps the Cursor entity out of this session.

[src]

Returns the id of this cursor.

Important traits for &'a mut [u8]
[src]

Returns the slice of result documents retrieved with this cursor.

The query may have more results. Whether a query has more results can be checked by the has_more() attribute function. To fetch the next batch of results use the next_cursor() function or iterate over all results by using the Iterator returned by the into_iter() function.

[src]

Returns whether there are more results available for this cursor on the server.

[src]

Returns whether the query result was served from the query cache or not.

If the query result is served from the query cache, the stats attribute will be None.

[src]

Returns the total number of result documents available (only available if the query was executed with the count attribute set).

[src]

Returns the statistics about the execution of data modification queries.

The stats will be None if the query is not a data modification query or the result is served from the query cache.

[src]

Returns warnings that occurred during query execution.

[src]

Checks whether this cursor has more results and if yes fetches a cursor with the next batch of results and returns it as a new CursorSession.

This function returns None if there are no more results for this cursor. It returns Some(Error) if fetching the next batch of results fails.

[src]

Deletes the cursor represented by this session on the server if it is still existing otherwise those nothing.

Trait Implementations

impl<T: Debug, C: Debug> Debug for CursorSession<T, C>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T, C> IntoIterator for CursorSession<T, C> where
    T: 'static + DeserializeOwned,
    C: 'static + Connector
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

Auto Trait Implementations

impl<T, C> !Send for CursorSession<T, C>

impl<T, C> !Sync for CursorSession<T, C>