Skip to main content

switch_linked_hosts

Function switch_linked_hosts 

Source
pub async fn switch_linked_hosts(
    keyboard: &DeviceRoute,
    targets: &[DeviceRoute],
    host: u8,
    channel_pool: &ChannelPool,
) -> Result<bool, HostSwitchError>
Expand description

Move reachable targets to host, then move the keyboard last.

Returns whether the keyboard actually changed hosts.