Skip to main content

split_device_path

Function split_device_path 

Source
pub fn split_device_path(path: &str) -> Option<(&str, String)>
Expand description

Strip the /d/<device-id> prefix, returning the device id and the remainder.

The remainder always starts with / so it can be appended to the device’s local base URL unchanged.