pub fn run_command_with_session(
        &self,
        command: Document,
        selection_criteria: impl Into<Option<SelectionCriteria>>,
        session: &mut ClientSession,
    ) -> Result<Document> {
        RUNTIME.block_on(self.async_database.run_command_with_session(
            command,
            selection_criteria.into(),
            &mut session.async_client_session,
        ))
    }
/// Runs a database-level command using the provided `ClientSession`.
///
/// Note that no inspection is done on `doc`, so the command will not use the database's default
/// read concern or write concern. If specific read concern or write concern is desired, it must
/// be specified manually.
Runs a database-level command using the provided `ClientSession`.
Note that no inspection is done on `doc`, so the command will not use the database's default
read concern or write concern. If specific read concern or write concern is desired, it must
be specified manually.
Runs a database - level command using the provided ` ClientSession ` . Note that no inspection is done on ` doc ` so the command will not use the database ' s default read concern or write concern . If specific read concern or write concern is desired it must be specified manually .
pub fn run_command_with_session(
        &self,
        command: Document,
        selection_criteria: impl Into<Option<SelectionCriteria>>,
        session: &mut ClientSession,
    ) -> Result<Document> {
        RUNTIME.block_on(self.async_database.run_command_with_session(
            command,
            selection_criteria.into(),
            &mut session.async_client_session,
        ))
    }
pub fn run_command_with_session ( & self , command : Document , selection_criteria : impl Into < Option < SelectionCriteria > > , session : & mut ClientSession , ) -> Result < Document > { RUNTIME . block_on ( self . async_database . run_command_with_session ( command , selection_criteria . into ( ) , & mut session . async_client_session , ) ) }
Runs a database-level command using the provided `ClientSession`.
Runs a database - level command using the provided ` ClientSession ` .
&self
command
Document
selection_criteria
impl Into<Option<SelectionCriteria>>
session
&mut ClientSession
&self
command
Document
selection_criteria
impl Into<Option<SelectionCriteria>>
session
&mut ClientSession