pub fn find_with_session(
        &self,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<FindOptions>>,
        session: &mut ClientSession,
    ) -> Result<SessionCursor<T>> {
        RUNTIME
            .block_on(self.async_collection.find_with_session(
                filter.into(),
                options.into(),
                &mut session.async_client_session,
            ))
            .map(SessionCursor::new)
    }
/// Finds the documents in the collection matching `filter` using the provided `ClientSession`.
Finds the documents in the collection matching `filter` using the provided `ClientSession`.
Finds the documents in the collection matching ` filter ` using the provided ` ClientSession ` .
pub fn find_with_session(
        &self,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<FindOptions>>,
        session: &mut ClientSession,
    ) -> Result<SessionCursor<T>> {
        RUNTIME
            .block_on(self.async_collection.find_with_session(
                filter.into(),
                options.into(),
                &mut session.async_client_session,
            ))
            .map(SessionCursor::new)
    }
pub fn find_with_session ( & self , filter : impl Into < Option < Document > > , options : impl Into < Option < FindOptions > > , session : & mut ClientSession , ) -> Result < SessionCursor < T > > { RUNTIME . block_on ( self . async_collection . find_with_session ( filter . into ( ) , options . into ( ) , & mut session . async_client_session , ) ) . map ( SessionCursor :: new ) }
Finds the documents in the collection matching `filter` using the provided `ClientSession`.
Finds the documents in the collection matching ` filter ` using the provided ` ClientSession ` .
&self
filter
impl Into<Option<Document>>
options
impl Into<Option<FindOptions>>
session
&mut ClientSession
&self
filter
impl Into<Option<Document>>
options
impl Into<Option<FindOptions>>
session
&mut ClientSession