pub struct DeviceService { /* private fields */ }Implementations§
Source§impl DeviceService
impl DeviceService
pub fn new() -> DeviceService
pub fn get_available_devices() -> Vec<(String, DeviceEndpointType)>
pub fn open_device( &mut self, device: &(String, DeviceEndpointType), ) -> Result<(), String>
pub fn close_device(&mut self, device_id: &String) -> Result<(), String>
pub fn is_device_connected(&self, device_id: &String) -> bool
pub fn get_device_info(&self, device_id: &String) -> Result<DeviceInfo, String>
pub fn write_device_command( &mut self, device_id: &String, command: &str, ) -> Result<(), String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeviceService
impl !RefUnwindSafe for DeviceService
impl Send for DeviceService
impl Sync for DeviceService
impl Unpin for DeviceService
impl !UnwindSafe for DeviceService
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more