pub trait Transport: Sync + Send {
    // Required methods
    fn session_begin(&mut self) -> Result<(), Error>;
    fn session_end(&mut self) -> Result<(), Error>;
    fn write_message(&mut self, message: ProtoMessage) -> Result<(), Error>;
    fn read_message(&mut self) -> Result<ProtoMessage, Error>;
}
Expand description

The transport interface that is implemented by the different ways to communicate with a Trezor device.

Required Methods§

source

fn session_begin(&mut self) -> Result<(), Error>

source

fn session_end(&mut self) -> Result<(), Error>

source

fn write_message(&mut self, message: ProtoMessage) -> Result<(), Error>

source

fn read_message(&mut self) -> Result<ProtoMessage, Error>

Implementors§