pub trait DeviceProxyInterface: Send + Sync {
type TransferResponseFut: Future<Output = Result<DeviceTransferResult, Error>> + Send;
type GetNameResponseFut: Future<Output = Result<DeviceGetNameResult, Error>> + Send;
// Required methods
fn transfer(
&self,
transactions: &[Transaction],
) -> Self::TransferResponseFut;
fn get_name(&self) -> Self::GetNameResponseFut;
}Required Associated Types§
type TransferResponseFut: Future<Output = Result<DeviceTransferResult, Error>> + Send
type GetNameResponseFut: Future<Output = Result<DeviceGetNameResult, Error>> + Send
Required Methods§
fn transfer(&self, transactions: &[Transaction]) -> Self::TransferResponseFut
fn get_name(&self) -> Self::GetNameResponseFut
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".