1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 21:48:13 +00:00

feat(rust/trezor-client): add Sync and Send to Transport (#3202)

This commit is contained in:
Piyush Kumar 2023-08-10 13:29:15 +05:30 committed by GitHub
parent 0ca440339a
commit 9113be553b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,7 +50,7 @@ impl ProtoMessage {
/// The transport interface that is implemented by the different ways to communicate with a Trezor
/// device.
pub trait Transport {
pub trait Transport: Sync + Send {
fn session_begin(&mut self) -> Result<(), error::Error>;
fn session_end(&mut self) -> Result<(), error::Error>;