pub struct Emulator { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Exchange for Emulator
impl Exchange for Emulator
Source§type Error = LedgerZemuError
type Error = LedgerZemuError
Error defined by Transport used
Source§type AnswerType = Vec<u8>
type AnswerType = Vec<u8>
The concrete type containing the APDUAnswer
Source§fn exchange<'life0, 'life1, 'async_trait, I>(
&'life0 self,
command: &'life1 APDUCommand<I>,
) -> Pin<Box<dyn Future<Output = Result<APDUAnswer<Self::AnswerType>, Self::Error>> + Send + 'async_trait>>
fn exchange<'life0, 'life1, 'async_trait, I>( &'life0 self, command: &'life1 APDUCommand<I>, ) -> Pin<Box<dyn Future<Output = Result<APDUAnswer<Self::AnswerType>, Self::Error>> + Send + 'async_trait>>
Send a command with the given transport and retrieve an answer or a transport error
Auto Trait Implementations§
impl Freeze for Emulator
impl RefUnwindSafe for Emulator
impl Send for Emulator
impl Sync for Emulator
impl Unpin for Emulator
impl UnwindSafe for Emulator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more