pub trait InputControlHandler: AsRef<[u32]> + AsMut<[u32]> {
    // Provided methods
    fn drop_context_flag(&self, i: usize) -> bool { ... }
    fn set_drop_context_flag(&mut self, i: usize) { ... }
    fn clear_drop_context_flag(&mut self, i: usize) { ... }
    fn add_context_flag(&self, i: usize) -> bool { ... }
    fn set_add_context_flag(&mut self, i: usize) { ... }
    fn clear_add_context_flag(&mut self, i: usize) { ... }
    fn configuration_value(&self) -> u8 { ... }
    fn set_configuration_value(&mut self, value: u8) { ... }
    fn interface_number(&self) -> u8 { ... }
    fn set_interface_number(&mut self, value: u8) { ... }
    fn alternate_setting(&self) -> u8 { ... }
    fn set_alternate_setting(&mut self, value: u8) { ... }
}
Expand description

A trait to handle Input Control Context.

Provided Methods§

source

fn drop_context_flag(&self, i: usize) -> bool

Returns the ith Drop Context flag. i starts from 0.

Panics

This method panics if i < 2 || i > 31.

source

fn set_drop_context_flag(&mut self, i: usize)

Sets the ith Drop Context flag. i starts from 0.

Panics

This method panics if i < 2 || i > 31.

source

fn clear_drop_context_flag(&mut self, i: usize)

Clears the ith Drop Context flag. i starts from 0.

Panics

This method panics if i < 2 || i > 31.

source

fn add_context_flag(&self, i: usize) -> bool

Returns the ith Add Context flag. i starts from 0.

Panics

This method panics if i > 31.

source

fn set_add_context_flag(&mut self, i: usize)

Sets the ith Add Context flag. i starts from 0.

Panics

This method panics if i > 31.

source

fn clear_add_context_flag(&mut self, i: usize)

Clears the ith Add Context flag. i starts from 0.

Panics

This method panics if i > 31.

source

fn configuration_value(&self) -> u8

Returns the value of the Configuration Value field.

source

fn set_configuration_value(&mut self, value: u8)

Sets the value of the Configuration Value field.

source

fn interface_number(&self) -> u8

Returns the value of the Interface Number field.

source

fn set_interface_number(&mut self, value: u8)

Sets the value of the Interface Number field.

source

fn alternate_setting(&self) -> u8

Returns the value of the Alternate Setting field.

source

fn set_alternate_setting(&mut self, value: u8)

Sets the value of the Alternate Setting field.

Implementors§