Scheme

Trait Scheme 

Source
pub trait Scheme {
    type Network: NetworkFamily;
    type Payload;

    const SCHEME_NAME: &'static str;

    // Required method
    fn network(&self) -> &Self::Network;
}
Expand description

A payment scheme applied to a network family.

Required Associated Constants§

Source

const SCHEME_NAME: &'static str

The name of the scheme.

Required Associated Types§

Source

type Network: NetworkFamily

The network family this scheme applies to.

Source

type Payload

The payload type produced by this scheme.

Required Methods§

Source

fn network(&self) -> &Self::Network

Get the concrete network for this scheme.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§