pub struct Ledger<T> {
pub transport: T,
}
Fields§
§transport: T
Implementations§
Trait Implementations§
Source§impl<F, C, T, R, E> Device<C, T, R, E> for Ledger<F>
impl<F, C, T, R, E> Device<C, T, R, E> for Ledger<F>
fn interpreter( &self, ) -> impl Interpreter<Command = C, Transmit = T, Response = R, Error = E>
Source§impl<T> HttpClient for Ledger<T>
impl<T> HttpClient for Ledger<T>
type Error = LedgerError
fn request<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_url: &'life1 str,
_req: &'life2 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Self::Error>> + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl<T> Freeze for Ledger<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ledger<T>where
T: RefUnwindSafe,
impl<T> Send for Ledger<T>where
T: Send,
impl<T> Sync for Ledger<T>where
T: Sync,
impl<T> Unpin for Ledger<T>where
T: Unpin,
impl<T> UnwindSafe for Ledger<T>where
T: UnwindSafe,
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