Skip to main content

ProviderCore

Trait ProviderCore 

Source
pub trait ProviderCore: Send + Sync {
    // Required method
    fn id(&self) -> Provider;

    // Provided method
    fn not_supported(&self, operation: Operation) -> FinanceError { ... }
}
Expand description

Identity shared by every capability trait: the provider id and the NotSupported error constructor used by default method bodies.

Required Methods§

Source

fn id(&self) -> Provider

This provider’s identity, used for routing and health reporting.

Provided Methods§

Source

fn not_supported(&self, operation: Operation) -> FinanceError

The error a default method body returns for an unimplemented operation.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§