pub(crate) fn from_is_master(reply: IsMasterReply) -> Self {
        Self {
            server_type: reply.command_response.server_type(),
            max_wire_version: reply.command_response.max_wire_version,
            min_wire_version: reply.command_response.min_wire_version,
            sasl_supported_mechs: reply.command_response.sasl_supported_mechs,
            // TODO RUST-204: Add "saslSupportedMechs" if applicable.
        }
    }
/// Constructs a new StreamDescription from an IsMasterReply.
Constructs a new StreamDescription from an IsMasterReply.
Constructs a new StreamDescription from an IsMasterReply .
pub(crate) fn from_is_master(reply: IsMasterReply) -> Self {
        Self {
            server_type: reply.command_response.server_type(),
            max_wire_version: reply.command_response.max_wire_version,
            min_wire_version: reply.command_response.min_wire_version,
            sasl_supported_mechs: reply.command_response.sasl_supported_mechs,
            // TODO RUST-204: Add "saslSupportedMechs" if applicable.
        }
    }
pub ( crate ) fn from_is_master ( reply : IsMasterReply ) -> Self { Self { server_type : reply . command_response . server_type ( ) , max_wire_version : reply . command_response . max_wire_version , min_wire_version : reply . command_response . min_wire_version , sasl_supported_mechs : reply . command_response . sasl_supported_mechs , // TODO RUST-204: Add "saslSupportedMechs" if applicable. } }
Constructs a new StreamDescription from an IsMasterReply.
Constructs a new StreamDescription from an IsMasterReply .
reply
IsMasterReply
reply
IsMasterReply