pub struct Device {
pub device_info: DeviceInfo,
/* private fields */
}Expand description
Entry point to the connected device. This device itself doesn’t communicate with the connected device but provide basic device information and channels to communicate with the connected device. So it’s valid to use provided channels even after dropping this instance.
Fields§
§device_info: DeviceInfoImplementations§
Source§impl Device
impl Device
pub fn control_channel(&self) -> Result<ControlChannel>
pub fn event_channel(&self) -> Result<Option<ReceiveChannel>>
pub fn stream_channel(&self) -> Result<Option<ReceiveChannel>>
pub fn device_info(&self) -> &DeviceInfo
Auto Trait Implementations§
impl Freeze for Device
impl RefUnwindSafe for Device
impl Send for Device
impl Sync for Device
impl Unpin for Device
impl UnwindSafe for Device
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