Trait xhci::context::DeviceHandler[][src]

pub trait DeviceHandler {
    fn slot_mut(&mut self) -> &mut dyn SlotHandler;
fn endpoint0_mut(&mut self) -> &mut dyn EndpointHandler;
fn endpoints_mut(&mut self, i: usize) -> &mut dyn EndpointPairHandler; }

A trait to handle the Device Context.

Required methods

fn slot_mut(&mut self) -> &mut dyn SlotHandler[src]

Returns a mutable reference to the Slot Context.

fn endpoint0_mut(&mut self) -> &mut dyn EndpointHandler[src]

Returns a mutable reference to the Endpoint Context 0.

fn endpoints_mut(&mut self, i: usize) -> &mut dyn EndpointPairHandler[src]

Returns a mutable reference to the Endpoint Context i.

Panics

This method panics if i == 0 or i > 15.

Loading content...

Implementors

impl DeviceHandler for xhci::context::byte32::Device[src]

impl DeviceHandler for xhci::context::byte64::Device[src]

Loading content...