Struct aaronia_rtsa::ApiHandle
source · pub struct ApiHandle { /* private fields */ }
Expand description
Handle to interface the library
Internally, all ApiHandle
s use one global library handle, which is dropped when there are
no ApiHandle
s left. Only the first handle, i.e., the one that creates the global library
handle can configure the Memory
size. Later created ApiHandle
s ignore the memory
parameter.
Implementations§
source§impl ApiHandle
impl ApiHandle
sourcepub fn rescan_devices(&mut self) -> Result
pub fn rescan_devices(&mut self) -> Result
Rescan for devices.
sourcepub fn reset_devices(&mut self) -> Result
pub fn reset_devices(&mut self) -> Result
Reset all devices.
sourcepub fn devices(&mut self) -> Result<Vec<DeviceInfo>, Error>
pub fn devices(&mut self) -> Result<Vec<DeviceInfo>, Error>
Get a list with information about all detected devices.
sourcepub fn get_this_device(&mut self, info: &DeviceInfo) -> Result<Device, Error>
pub fn get_this_device(&mut self, info: &DeviceInfo) -> Result<Device, Error>
Get a specific Device
, identified by its DeviceInfo
.
The DeviceInfo can be get from the devices() function.