Trait trezor_client::transport::Transport
source · 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.