fedimint_mint_client

Trait NotesSelector

source
pub trait NotesSelector<Note = SpendableNoteUndecoded>: Send + Sync {
    // Required method
    fn select_notes<'life0, 'async_trait>(
        &'life0 self,
        stream: impl 'async_trait + Stream<Item = (Amount, Note)> + Send,
        requested_amount: Amount,
        fee_per_note_input: Amount,
    ) -> Pin<Box<dyn Future<Output = Result<TieredMulti<Note>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn select_notes<'life0, 'async_trait>( &'life0 self, stream: impl 'async_trait + Stream<Item = (Amount, Note)> + Send, requested_amount: Amount, fee_per_note_input: Amount, ) -> Pin<Box<dyn Future<Output = Result<TieredMulti<Note>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Select notes from stream for requested_amount. The stream must produce items in non- decreasing order of amount.

Object Safety§

This trait is not object safe.

Implementors§