Skip to main content

resolve_iface_selector

Function resolve_iface_selector 

Source
pub fn resolve_iface_selector(selector: &IfaceSelector) -> Result<Iface>
Expand description

Resolve --iface against the host, whichever way the user spelled it.

The spelling is IfaceSelector’s problem, not this crate’s: an IPv4 address and an OS interface name are both accepted here, in viva-service and in the Python bindings, because a user who found a camera with one tool should be able to stream it with the next (#109).