Skip to main content

ThreadReplier

Trait ThreadReplier 

Source
pub trait ThreadReplier: Send + Sync {
    // Required methods
    fn prefix(&self) -> &str;
    fn reply_in_thread<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        thread: &'life1 str,
        template: &'life2 str,
        fields: &'life3 BTreeMap<String, String>,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

A driver that answers the person who wrote, in the same thread (spec 3.5 §7.10): the email and social outboxes.

Required Methods§

Source

fn prefix(&self) -> &str

The prefix of the thread references it answers: email or social.

Source

fn reply_in_thread<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, thread: &'life1 str, template: &'life2 str, fields: &'life3 BTreeMap<String, String>, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Answers thread thread (without the prefix) with template template filled with fields, under the rules of reply_in_thread.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§