pub enum CoinselectStrategy {
Aggregate,
SmallSize,
}Variants§
Aggregate
Collect them most small outputs unless the invoiced value if reached
SmallSize
Collect the minimum number of outputs (with the large value) to reduce the resulting input count
Trait Implementations§
Source§impl Clone for CoinselectStrategy
impl Clone for CoinselectStrategy
Source§fn clone(&self) -> CoinselectStrategy
fn clone(&self) -> CoinselectStrategy
Returns a duplicate 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 Coinselect for CoinselectStrategy
impl Coinselect for CoinselectStrategy
fn coinselect<'a>( &mut self, invoiced_state: &StrictVal, calc: &mut StateCalc, owned_state: impl IntoIterator<Item = &'a OwnedState<Outpoint>, IntoIter: DoubleEndedIterator<Item = &'a OwnedState<Outpoint>>>, ) -> Option<Vec<(CellAddr, Outpoint)>>
Source§impl Debug for CoinselectStrategy
impl Debug for CoinselectStrategy
Source§impl Default for CoinselectStrategy
impl Default for CoinselectStrategy
Source§fn default() -> CoinselectStrategy
fn default() -> CoinselectStrategy
Returns the “default value” for a type. Read more
Source§impl Display for CoinselectStrategy
impl Display for CoinselectStrategy
Source§impl FromStr for CoinselectStrategy
impl FromStr for CoinselectStrategy
Source§impl Hash for CoinselectStrategy
impl Hash for CoinselectStrategy
Source§impl PartialEq for CoinselectStrategy
impl PartialEq for CoinselectStrategy
impl Copy for CoinselectStrategy
impl Eq for CoinselectStrategy
impl StructuralPartialEq for CoinselectStrategy
Auto Trait Implementations§
impl Freeze for CoinselectStrategy
impl RefUnwindSafe for CoinselectStrategy
impl Send for CoinselectStrategy
impl Sync for CoinselectStrategy
impl Unpin for CoinselectStrategy
impl UnwindSafe for CoinselectStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.