Skip to main content

check_endpoint

Function check_endpoint 

Source
pub async fn check_endpoint<C: ClientT + Sync>(
    client: &NativeClient<C>,
    required_methods: &[&str],
) -> Result<VersionInfo, NativeRpcError>
Expand description

Require native wire major 14 and every caller-selected method before use. Discovery is queried once; there is no legacy-name fallback. Missing or malformed discovery fields are incompatible discovery errors retaining the original cause; transport outages remain ordinary call failures.