pub struct Wallet<K, O> { /* private fields */ }
Expand description
Provides a simple interface to allow parallel caching and retrieval of UTXOs.
Implementations§
Source§impl<K, O> Wallet<K, O>
impl<K, O> Wallet<K, O>
Sourcepub fn add_outputs(
&self,
key: K,
outputs: Vec<O>,
) -> impl Future<Output = ()> + Send + 'static
pub fn add_outputs( &self, key: K, outputs: Vec<O>, ) -> impl Future<Output = ()> + Send + 'static
Synchronously adds outputs to the wallet and returns a delayed Future removing the output.
Sourcepub fn recv_outputs(
&self,
key: &K,
outputs: &[O],
) -> Result<(), UnexpectedOutputs>
pub fn recv_outputs( &self, key: &K, outputs: &[O], ) -> Result<(), UnexpectedOutputs>
Removes an output from the wallet, else raises an error.
Trait Implementations§
Auto Trait Implementations§
impl<K, O> Freeze for Wallet<K, O>
impl<K, O> !RefUnwindSafe for Wallet<K, O>
impl<K, O> Send for Wallet<K, O>
impl<K, O> Sync for Wallet<K, O>
impl<K, O> Unpin for Wallet<K, O>
impl<K, O> !UnwindSafe for Wallet<K, O>
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