pub trait AccessoryDevice {
// Required methods
fn in_accessory_mode(&self) -> Result<bool, AccessoryError>;
fn find_endpoints(&self) -> Result<Endpoints, EndpointError>;
}Required Methods§
Sourcefn in_accessory_mode(&self) -> Result<bool, AccessoryError>
fn in_accessory_mode(&self) -> Result<bool, AccessoryError>
Checks if the device is in accessory mode.
See: https://source.android.com/devices/accessories/aoa#establish-communication-with-the-device
Sourcefn find_endpoints(&self) -> Result<Endpoints, EndpointError>
fn find_endpoints(&self) -> Result<Endpoints, EndpointError>
Finds the bulk in and out endpoints for this accessory.