pub struct WalletWireProcessor<W: WalletInterface> { /* private fields */ }Expand description
Receives wire protocol messages and dispatches them to a wallet implementation.
Implementations§
Trait Implementations§
Source§impl<W: WalletInterface + Send + Sync> WalletWire for WalletWireProcessor<W>
WalletWireProcessor also implements WalletWire so it can serve as an
in-memory transport for testing (transceiver -> processor -> wallet).
impl<W: WalletInterface + Send + Sync> WalletWire for WalletWireProcessor<W>
WalletWireProcessor also implements WalletWire so it can serve as an in-memory transport for testing (transceiver -> processor -> wallet).
Source§fn transmit_to_wallet<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn transmit_to_wallet<'life0, 'life1, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, WalletError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send a binary message to the wallet and receive the response.
Auto Trait Implementations§
impl<W> Freeze for WalletWireProcessor<W>where
W: Freeze,
impl<W> RefUnwindSafe for WalletWireProcessor<W>where
W: RefUnwindSafe,
impl<W> Send for WalletWireProcessor<W>
impl<W> Sync for WalletWireProcessor<W>
impl<W> Unpin for WalletWireProcessor<W>where
W: Unpin,
impl<W> UnsafeUnpin for WalletWireProcessor<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for WalletWireProcessor<W>where
W: 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