Struct bdk_wallet::coin_selection::SingleRandomDraw
source · pub struct SingleRandomDraw;
Expand description
Pull UTXOs at random until we have enough to meet the target.
Trait Implementations§
source§impl Clone for SingleRandomDraw
impl Clone for SingleRandomDraw
source§fn clone(&self) -> SingleRandomDraw
fn clone(&self) -> SingleRandomDraw
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CoinSelectionAlgorithm for SingleRandomDraw
impl CoinSelectionAlgorithm for SingleRandomDraw
source§fn coin_select<R: RngCore>(
&self,
required_utxos: Vec<WeightedUtxo>,
optional_utxos: Vec<WeightedUtxo>,
fee_rate: FeeRate,
target_amount: u64,
drain_script: &Script,
rand: &mut R
) -> Result<CoinSelectionResult, InsufficientFunds>
fn coin_select<R: RngCore>( &self, required_utxos: Vec<WeightedUtxo>, optional_utxos: Vec<WeightedUtxo>, fee_rate: FeeRate, target_amount: u64, drain_script: &Script, rand: &mut R ) -> Result<CoinSelectionResult, InsufficientFunds>
Perform the coin selection Read more
source§impl Debug for SingleRandomDraw
impl Debug for SingleRandomDraw
source§impl Default for SingleRandomDraw
impl Default for SingleRandomDraw
source§fn default() -> SingleRandomDraw
fn default() -> SingleRandomDraw
Returns the “default value” for a type. Read more
impl Copy for SingleRandomDraw
Auto Trait Implementations§
impl Freeze for SingleRandomDraw
impl RefUnwindSafe for SingleRandomDraw
impl Send for SingleRandomDraw
impl Sync for SingleRandomDraw
impl Unpin for SingleRandomDraw
impl UnwindSafe for SingleRandomDraw
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