pub struct Receiver { /* private fields */ }Expand description
Implements the Unifying wireless receiver.
Implementations§
Source§impl Receiver
impl Receiver
Sourcepub fn new(chan: Arc<HidppChannel>) -> Result<Self, ReceiverError>
pub fn new(chan: Arc<HidppChannel>) -> Result<Self, ReceiverError>
Tries to initialize a new [UnifyingReceiver] from a raw HID++ channel.
If no receiver could be found, or if the vendor and product IDs don’t
match the ones of any known Unifying receiver, this function will return
ReceiverError::UnknownReceiver.
Sourcepub async fn get_receiver_info(&self) -> Result<ReceiverInfo, ReceiverError>
pub async fn get_receiver_info(&self) -> Result<ReceiverInfo, ReceiverError>
Provides general information about the receiver.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Receiver
impl !UnwindSafe for Receiver
impl Freeze for Receiver
impl Send for Receiver
impl Sync for Receiver
impl Unpin for Receiver
impl UnsafeUnpin for Receiver
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