pub struct MaxAmount(pub u128);Expand description
PaymentSelector that rejects candidates whose amount exceeds the budget.
Tuple Fields§
§0: u128Trait Implementations§
impl Copy for MaxAmount
Source§impl PaymentSelector for MaxAmount
impl PaymentSelector for MaxAmount
Source§fn select<'a>(
&self,
candidates: &[&'a PaymentCandidate],
) -> Option<&'a PaymentCandidate>
fn select<'a>( &self, candidates: &[&'a PaymentCandidate], ) -> Option<&'a PaymentCandidate>
Returns the selected candidate (if any).
Auto Trait Implementations§
impl Freeze for MaxAmount
impl RefUnwindSafe for MaxAmount
impl Send for MaxAmount
impl Sync for MaxAmount
impl Unpin for MaxAmount
impl UnsafeUnpin for MaxAmount
impl UnwindSafe for MaxAmount
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