Skip to main content

is_supported

Function is_supported 

Source
pub fn is_supported(server_version: i32, feature: ProtocolFeature) -> bool
Expand description

Checks if a feature is supported without returning an error.

§Arguments

  • server_version - The connected server’s version
  • feature - The protocol feature to check

§Returns

  • true if the feature is supported
  • false if the server version is too old