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§async fn transmit_to_wallet(
&self,
message: &[u8],
) -> Result<Vec<u8>, WalletError>
async fn transmit_to_wallet( &self, message: &[u8], ) -> Result<Vec<u8>, WalletError>
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>where
W: Send,
impl<W> Sync for WalletWireProcessor<W>where
W: Sync,
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