Skip to main content

SchemeClient

Trait SchemeClient 

Source
pub trait SchemeClient:
    SchemeId
    + Sealed
    + Send
    + Sync {
    // Required method
    fn accept(
        &self,
        payment_required: &PaymentRequired,
    ) -> Vec<PaymentCandidate>;
}
Expand description

Client-side scheme interface.

Sealed: only crates inside this workspace may implement it.

Required Methods§

Source

fn accept(&self, payment_required: &PaymentRequired) -> Vec<PaymentCandidate>

Examines a 402 response and returns all payment candidates this client can fulfil.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§