pub(super) async fn kill_cursor(
        &self,
        cursor_id: i64,
        pinned_connection: Option<&PinnedConnectionHandle>,
    ) -> Result<()> {
        let ns = self.namespace();

        self.client()
            .database(ns.db.as_str())
            .run_command_common(
                doc! {
                    "killCursors": ns.coll.as_str(),
                    "cursors": [cursor_id]
                },
                None,
                None,
                pinned_connection,
            )
            .await?;
        Ok(())
    }
/// Kill the server side cursor that id corresponds to.
Kill the server side cursor that id corresponds to.
Kill the server side cursor that id corresponds to .
pub(super) async fn kill_cursor(
        &self,
        cursor_id: i64,
        pinned_connection: Option<&PinnedConnectionHandle>,
    ) -> Result<()> {
        let ns = self.namespace();
        self.client()
            .database(ns.db.as_str())
            .run_command_common(
                doc! {
                    "killCursors": ns.coll.as_str(),
                    "cursors": [cursor_id]
                },
                None,
                None,
                pinned_connection,
            )
            .await?;
        Ok(())
    }
pub ( super ) async fn kill_cursor ( & self , cursor_id : i64 , pinned_connection : Option < & PinnedConnectionHandle > , ) -> Result < ( ) > { let ns = self . namespace ( ) ; self . client ( ) . database ( ns . db . as_str ( ) ) . run_command_common ( doc ! { " " ns coll as_str ( ) " " [ cursor_id ] } , None , None , pinned_connection , ) . await ? ; Ok ( ( ) ) }
Kill the server side cursor that id corresponds to.
Kill the server side cursor that id corresponds to .
&self
cursor_id
i64
pinned_connection
Option<&PinnedConnectionHandle>
&self
cursor_id
i64
pinned_connection
Option<&PinnedConnectionHandle>