pub fn write(&mut self, offset: u8, value: u8) -> Result<(), T::E> {
        match offset {
            COMMAND_OFFSET if value == CMD_RESET_CPU => {
                // Trigger the exit event.
                self.reset_evt.trigger()
            }
            _ => Ok(()),
        }
    }
/// Handles a write request from the driver at `offset` offset from the
/// base I/O address.
///
/// # Arguments
/// * `offset` - The offset that will be added to the base address
///              for writing to a specific register.
/// * `value` - The byte that should be written.
///
/// # Example
///
/// You can see an example of how to use this function in the
/// [`Example` section from `I8042Device`](struct.I8042Device.html#example).
Handles a write request from the driver at `offset` offset from the
base I/O address.
Handles a write request from the driver at ` offset ` offset from the base I / O address .
pub fn write(&mut self, offset: u8, value: u8) -> Result<(), T::E> {
        match offset {
            COMMAND_OFFSET if value == CMD_RESET_CPU => {
                // Trigger the exit event.
                self.reset_evt.trigger()
            }
            _ => Ok(()),
        }
    }
pub fn write ( & mut self , offset : u8 , value : u8 ) -> Result < ( ) , T :: E > { match offset { COMMAND_OFFSET if value == CMD_RESET_CPU => { // Trigger the exit event. self . reset_evt . trigger ( ) } _ => Ok ( ( ) ) , } }
Handles a write request from the driver at `offset` offset from the
base I/O address.
Handles a write request from the driver at ` offset ` offset from the base I / O address .
&mut self
offset
u8
value
u8
example
You can see an example of how to use this function in the
[`Example` section from `I8042Device`](struct.I8042Device.html#example).
You can see an example of how to use this function in the [ ` Example ` section from ` I8042Device ` ] ( struct . I8042Device . html#example ) .