mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-19 05:58:09 +00:00
feat(rust/trezor-client): add Sync and Send to Transport (#3202)
This commit is contained in:
parent
0ca440339a
commit
9113be553b
@ -50,7 +50,7 @@ impl ProtoMessage {
|
|||||||
|
|
||||||
/// The transport interface that is implemented by the different ways to communicate with a Trezor
|
/// The transport interface that is implemented by the different ways to communicate with a Trezor
|
||||||
/// device.
|
/// device.
|
||||||
pub trait Transport {
|
pub trait Transport: Sync + Send {
|
||||||
fn session_begin(&mut self) -> Result<(), error::Error>;
|
fn session_begin(&mut self) -> Result<(), error::Error>;
|
||||||
fn session_end(&mut self) -> Result<(), error::Error>;
|
fn session_end(&mut self) -> Result<(), error::Error>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user