[−][src]Struct keyberon::hid::HidClass
Implementations
impl<B: UsbBus, D: HidDevice, '_> HidClass<'_, B, D>
[src]
pub fn new(device: D, alloc: &UsbBusAllocator<B>) -> HidClass<'_, B, D>
[src]
pub fn device_mut(&mut self) -> &mut D
[src]
pub fn write(&mut self, data: &[u8]) -> Result<usize, ()>
[src]
Trait Implementations
impl<B: UsbBus, D: HidDevice, '_> UsbClass<B> for HidClass<'_, B, D>
[src]
fn poll(&mut self)
[src]
fn reset(&mut self)
[src]
fn get_configuration_descriptors(
&self,
writer: &mut DescriptorWriter<'_>
) -> Result<()>
[src]
&self,
writer: &mut DescriptorWriter<'_>
) -> Result<()>
fn get_string(&self, _index: StringIndex, _lang_id: u16) -> Option<&str>
[src]
fn endpoint_in_complete(&mut self, addr: EndpointAddress)
[src]
fn endpoint_out(&mut self, _addr: EndpointAddress)
[src]
fn control_in(&mut self, xfer: ControlIn<'_, '_, '_, B>)
[src]
fn control_out(&mut self, xfer: ControlOut<'_, '_, '_, B>)
[src]
fn get_bos_descriptors(
&self,
writer: &mut BosWriter<'_, '_>
) -> Result<(), UsbError>
[src]
&self,
writer: &mut BosWriter<'_, '_>
) -> Result<(), UsbError>
fn endpoint_setup(&mut self, addr: EndpointAddress)
[src]
Auto Trait Implementations
impl<'a, B, D> Send for HidClass<'a, B, D> where
D: Send,
D: Send,
impl<'a, B, D> Sync for HidClass<'a, B, D> where
D: Sync,
D: Sync,
impl<'a, B, D> Unpin for HidClass<'a, B, D> where
D: Unpin,
D: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,