common_primitives::handles

Trait HandleProvider

Source
pub trait HandleProvider {
    // Required method
    fn get_handle_for_msa(key: MessageSourceId) -> Option<HandleResponse>;
}
Expand description

A behavior that allows for retrieving a Handle for a given MessageSourceAccount

Required Methods§

Source

fn get_handle_for_msa(key: MessageSourceId) -> Option<HandleResponse>

Validate a handle for a given MessageSourceAccount

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.

Implementations on Foreign Types§

Source§

impl HandleProvider for ()

Blanket implementation for testing.

Implementors§