Function devices::virtio::input::new_switches
source · pub fn new_switches<T>(
idx: u32,
source: T,
virtio_features: u64
) -> Result<Input<SocketEventSource<T>>>
Expand description
Creates a new virtio device for switches.