Skip to main content

platform_capabilities

Function platform_capabilities 

Source
pub fn platform_capabilities() -> PlatformCaps
Expand description

Returns the PlatformCaps for the current platform and enabled features.

This function is stateless — it returns compile-time constants that reflect the target OS and the feature flags the crate was built with.

§Example

use binger_udp::platform_capabilities;

let caps = platform_capabilities();
assert!(!caps.backend_name.is_empty());