/// Lists all indexes on this collection using the provided `ClientSession`.
Lists all indexes on this collection using the provided `ClientSession`.
Lists all indexes on this collection using the provided ` ClientSession ` .
pub fn list_indexes_with_session(
        &self,
        options: impl Into<Option<ListIndexesOptions>>,
        session: &mut ClientSession,
    ) -> Result<SessionCursor<IndexModel>> {
        RUNTIME
            .block_on(
                self.async_collection
                    .list_indexes_with_session(options, &mut session.async_client_session),
            )
            .map(SessionCursor::new)
    }
pub fn list_indexes_with_session ( & self , options : impl Into < Option < ListIndexesOptions > > , session : & mut ClientSession , ) -> Result < SessionCursor < IndexModel > > { RUNTIME . block_on ( self . async_collection . list_indexes_with_session ( options , & mut session . async_client_session ) , ) . map ( SessionCursor :: new ) }
Lists all indexes on this collection using the provided `ClientSession`.
Lists all indexes on this collection using the provided ` ClientSession ` .
&self
options
impl Into<Option<ListIndexesOptions>>
session
&mut ClientSession