pub async fn run_netlink_worker<H: InterfacesHandler, C: NetlinkContext>(
params: NetlinkWorkerParams<H, C>,
access_control: C::AccessControl<'_>,
)Expand description
The worker encompassing all asynchronous Netlink work.
The worker is never expected to complete.
protocols is taken as a closure because we need to avoid creating asynchronous FIDL proxies
until an executor is running, so it’s helpful to defer creation until the event loop starts
running.
§Panics
Panics if a non-recoverable error is encountered by the worker. For example, a FIDL error on one of the FIDL connections with the netstack.