Skip to main content

MempoolAuth_MempoolAuth1

Trait MempoolAuth_MempoolAuth1 

Source
pub trait MempoolAuth_MempoolAuth1: Send + Sync {
    // Required methods
    fn mempoolauth_intro_auth(
        &self,
        arg0: AuthCard,
    ) -> impl Future<Output = Result<impl EncodesAs<IntroAuthResult>, ProgramError>> + Send;
    fn mempoolauth_auth_data_changed_chunk(
        &self,
        arg0: KeyChangeChunk,
    ) -> impl Future<Output = Result<impl EncodesAs<()>, ProgramError>> + Send;
    fn mempoolauth_get_auth_info(
        &self,
        arg0: ProtocolCommit,
    ) -> impl Future<Output = Result<impl EncodesAs<IntroAuthResult>, ProgramError>> + Send;
}
Expand description

Each handler replies with anything that encodes like the reply type. Implementations can be plain async fns returning a concrete reply type under #[allow(refining_impl_trait)].

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§