/// Finds a single document in the collection matching `filter` using the provided
/// `ClientSession`.
Finds a single document in the collection matching `filter` using the provided
`ClientSession`.
Finds a single document in the collection matching ` filter ` using the provided ` ClientSession ` .
pub fn find_one_with_session(
        &self,
        filter: impl Into<Option<Document>>,
        options: impl Into<Option<FindOneOptions>>,
        session: &mut ClientSession,
    ) -> Result<Option<T>> {
        RUNTIME.block_on(self.async_collection.find_one_with_session(
            filter.into(),
            options.into(),
            &mut session.async_client_session,
        ))
    }
pub fn find_one_with_session ( & self , filter : impl Into < Option < Document > > , options : impl Into < Option < FindOneOptions > > , session : & mut ClientSession , ) -> Result < Option < T > > { RUNTIME . block_on ( self . async_collection . find_one_with_session ( filter . into ( ) , options . into ( ) , & mut session . async_client_session , ) ) }
Finds a single document in the collection matching `filter` using the provided
`ClientSession`.
Finds a single document in the collection matching ` filter ` using the provided ` ClientSession ` .
&self
filter
impl Into<Option<Document>>
options
impl Into<Option<FindOneOptions>>
session
&mut ClientSession