use autoreleasepool;
use CWWiFiClient;
use NSString;
/// Returns the macOS Wi-Fi transmit rate in bps for the given interface name.
///
/// The CoreWLAN calls below produce autoreleased Obj-C/XPC objects
/// (`CWFRequestParameters`, `CWFInterface`, the `CWFXPCRequestProtocolCoreWLAN`
/// proxy). This is called from long-lived threads with no draining autorelease
/// pool (e.g. `netwatch`'s interface monitor re-enumerates on every network
/// event), so without an explicit pool those objects are added to a pool that
/// never drains and accumulate without bound — a steady multi-MB/hour macOS
/// leak. A scoped pool per call frees them immediately.
pub