/// Updates the given `command` as needed based on the `critiera`.
Updates the given `command` as needed based on the `critiera`.
Updates the given ` command ` as needed based on the ` critiera ` .
pub(crate) async fn update_command_with_read_pref<T>(
        &self,
        server_address: &ServerAddress,
        command: &mut Command<T>,
        criteria: Option<&SelectionCriteria>,
    ) {
        self.state
            .read()
            .await
            .update_command_with_read_pref(server_address, command, criteria)
    }
pub ( crate ) async fn update_command_with_read_pref < T > ( & self , server_address : & ServerAddress , command : & mut Command < T > , criteria : Option < & SelectionCriteria > , ) { self . state . read ( ) . await . update_command_with_read_pref ( server_address , command , criteria ) }
Updates the given `command` as needed based on the `critiera`.
Updates the given ` command ` as needed based on the ` critiera ` .
&self
server_address
&ServerAddress
command
&mut Command<T>
criteria
Option<&SelectionCriteria>