pub struct LedgerInterpreter<C, T, R, E> { /* private fields */ }Trait Implementations§
Source§impl<C, T, R, E> Default for LedgerInterpreter<C, T, R, E>
impl<C, T, R, E> Default for LedgerInterpreter<C, T, R, E>
Source§impl<C, T, R, E> Interpreter for LedgerInterpreter<C, T, R, E>
impl<C, T, R, E> Interpreter for LedgerInterpreter<C, T, R, E>
type Command = C
type Transmit = T
type Response = R
type Error = E
fn start( &mut self, command: Self::Command, ) -> Result<Self::Transmit, Self::Error>
fn exchange( &mut self, data: Vec<u8>, ) -> Result<Option<Self::Transmit>, Self::Error>
fn end(self) -> Result<Self::Response, Self::Error>
Auto Trait Implementations§
impl<C, T, R, E> Freeze for LedgerInterpreter<C, T, R, E>
impl<C, T, R, E> RefUnwindSafe for LedgerInterpreter<C, T, R, E>
impl<C, T, R, E> Send for LedgerInterpreter<C, T, R, E>
impl<C, T, R, E> Sync for LedgerInterpreter<C, T, R, E>
impl<C, T, R, E> Unpin for LedgerInterpreter<C, T, R, E>
impl<C, T, R, E> UnwindSafe for LedgerInterpreter<C, T, R, E>
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