[][src]Trait ectool::Access

pub trait Access {
    unsafe fn command(&mut self, cmd: u8, data: &mut [u8]) -> Result<u8, Error>;
fn data_size(&self) -> usize; }

Access method for running an EC command

Required methods

unsafe fn command(&mut self, cmd: u8, data: &mut [u8]) -> Result<u8, Error>

Sends a command using the access method. Only internal use is recommended

fn data_size(&self) -> usize

The maximum size that can be provided for the data argument

Loading content...

Implementors

impl Access for AccessHid[src]

impl Access for AccessLpcLinux[src]

impl<T: Timeout> Access for AccessLpcDirect<T>[src]

Loading content...