Struct aaronia_rtsa::ApiHandle

source ·
pub struct ApiHandle { /* private fields */ }
Expand description

Handle to interface the library

Internally, all ApiHandles use one global library handle, which is dropped when there are no ApiHandles left. Only the first handle, i.e., the one that creates the global library handle can configure the Memory size. Later created ApiHandles ignore the memory parameter.

Implementations§

Create ApiHandle with default Memory size medium.

Create ApiHandle with given Memory size.

The memory size is only considered, if this is the first ApiHandle, i.e. the one that initializes the underlying RTSA library.

Rescan for devices.

Reset all devices.

Get a list with information about all detected devices.

Get the first detected Device.

Get a specific Device, identified by its DeviceInfo.

The DeviceInfo can be get from the devices() function.

Trait Implementations§

Formats the value using the given formatter. Read more
Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.