Skip to main content

FormHandler

Trait FormHandler 

Source
pub trait FormHandler: Sync + Send {
    // Required method
    fn handle_contact_form(
        &self,
        session: &HttpSessionData,
        form: &ContactForm,
        form_data: FormData,
    ) -> impl Future<Output = Result<HttpResponse>> + Send;
}

Required Methods§

Source

fn handle_contact_form( &self, session: &HttpSessionData, form: &ContactForm, form_data: FormData, ) -> impl Future<Output = Result<HttpResponse>> + Send

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§