/// Creates a monitor associated with a given Server.
/// This method does not start the monitor. Use `Monitor::start` to do so.
Creates a monitor associated with a given Server.
This method does not start the monitor. Use `Monitor::start` to do so.
Creates a monitor associated with a given Server . This method does not start the monitor . Use ` Monitor :: start ` to do so .
pub(super) fn new(
        address: ServerAddress,
        server: &Arc<Server>,
        topology: WeakTopology,
        client_options: ClientOptions,
        update_receiver: ServerUpdateReceiver,
    ) -> Self {
        Self {
            address,
            server: server.clone(),
            client_options,
            update_receiver,
            topology,
        }
    }
pub ( super ) fn new ( address : ServerAddress , server : & Arc < Server > , topology : WeakTopology , client_options : ClientOptions , update_receiver : ServerUpdateReceiver , ) -> Self { Self { address , server : server . clone ( ) , client_options , update_receiver , topology , } }
Creates a monitor associated with a given Server.
Creates a monitor associated with a given Server .
address
ServerAddress
server
&Arc<Server>
topology
WeakTopology
client_options
ClientOptions
update_receiver
ServerUpdateReceiver