pub fn insert_many_with_session(
        &self,
        docs: impl IntoIterator<Item = impl Borrow<T>>,
        options: impl Into<Option<InsertManyOptions>>,
        session: &mut ClientSession,
    ) -> Result<InsertManyResult> {
        RUNTIME.block_on(self.async_collection.insert_many_with_session(
            docs,
            options.into(),
            &mut session.async_client_session,
        ))
    }
/// Inserts the documents in `docs` into the collection using the provided `ClientSession`.
///
/// This operation will retry once upon failure if the connection and encountered error support
/// retryability. See the documentation
/// [here](https://docs.mongodb.com/manual/core/retryable-writes/) for more information on
/// retryable writes.
Inserts the documents in `docs` into the collection using the provided `ClientSession`.
This operation will retry once upon failure if the connection and encountered error support
retryability. See the documentation
[here] for more information on
retryable writes.
Inserts the documents in ` docs ` into the collection using the provided ` ClientSession ` . This operation will retry once upon failure if the connection and encountered error support retryability . See the documentation [ here ] for more information on retryable writes .
pub fn insert_many_with_session(
        &self,
        docs: impl IntoIterator<Item = impl Borrow<T>>,
        options: impl Into<Option<InsertManyOptions>>,
        session: &mut ClientSession,
    ) -> Result<InsertManyResult> {
        RUNTIME.block_on(self.async_collection.insert_many_with_session(
            docs,
            options.into(),
            &mut session.async_client_session,
        ))
    }
pub fn insert_many_with_session ( & self , docs : impl IntoIterator < Item = impl Borrow < T > > , options : impl Into < Option < InsertManyOptions > > , session : & mut ClientSession , ) -> Result < InsertManyResult > { RUNTIME . block_on ( self . async_collection . insert_many_with_session ( docs , options . into ( ) , & mut session . async_client_session , ) ) }
Inserts the documents in `docs` into the collection using the provided `ClientSession`.
Inserts the documents in ` docs ` into the collection using the provided ` ClientSession ` .
&self
docs
impl IntoIterator<Item = impl Borrow<T>>
options
impl Into<Option<InsertManyOptions>>
session
&mut ClientSession
&self
docs
impl IntoIterator<Item = impl Borrow<T>>
options
impl Into<Option<InsertManyOptions>>
session
&mut ClientSession