pub struct FirstMatch;Expand description
Selector that returns the first matching candidate.
This is the simplest selection strategy. The order of candidates is determined by the registration order of scheme clients.
Trait Implementations§
Source§impl PaymentSelector for FirstMatch
impl PaymentSelector for FirstMatch
Source§fn select<'a>(
&self,
candidates: &'a [PaymentCandidate],
) -> Option<&'a PaymentCandidate>
fn select<'a>( &self, candidates: &'a [PaymentCandidate], ) -> Option<&'a PaymentCandidate>
Selects a payment candidate from the available options.
Auto Trait Implementations§
impl Freeze for FirstMatch
impl RefUnwindSafe for FirstMatch
impl Send for FirstMatch
impl Sync for FirstMatch
impl Unpin for FirstMatch
impl UnwindSafe for FirstMatch
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