Enum ctaphid_dispatch::types::HidInterchange
source · [−]pub enum HidInterchange {
Request((Command, Message)),
Response(InterchangeResponse),
None,
}Variants
Request((Command, Message))
Response(InterchangeResponse)
None
Trait Implementations
sourceimpl Clone for HidInterchange
impl Clone for HidInterchange
sourcefn clone(&self) -> HidInterchange
fn clone(&self) -> HidInterchange
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for HidInterchange
impl Debug for HidInterchange
sourceimpl Interchange for HidInterchange
impl Interchange for HidInterchange
const CLIENT_CAPACITY: usize = 1usize
type REQUEST = (Command, Vec<u8, 7609>)
type RESPONSE = Result<Vec<u8, 7609>, Error>
sourceunsafe fn reset_claims()
unsafe fn reset_claims()
Method purely for testing - do not use in production Read more
sourcefn claim() -> Option<(Requester<Self>, Responder<Self>)>
fn claim() -> Option<(Requester<Self>, Responder<Self>)>
This is the constructor for a (Requester, Responder) pair. Read more
sourcefn unclaimed_clients() -> usize
fn unclaimed_clients() -> usize
Method for debugging: how many allocated clients have not been claimed.
sourceimpl PartialEq<HidInterchange> for HidInterchange
impl PartialEq<HidInterchange> for HidInterchange
sourcefn eq(&self, other: &HidInterchange) -> bool
fn eq(&self, other: &HidInterchange) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
impl StructuralPartialEq for HidInterchange
Auto Trait Implementations
impl RefUnwindSafe for HidInterchange
impl Send for HidInterchange
impl Sync for HidInterchange
impl Unpin for HidInterchange
impl UnwindSafe for HidInterchange
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more