Skip to main content

MailboxSource

Trait MailboxSource 

Source
pub trait MailboxSource: Send + Sync {
    // Required methods
    fn inbox(&self, agent_id: &str, after_id: i64) -> Result<Vec<MessageRow>>;
    fn sent(&self, agent_id: &str, after_id: i64) -> Result<Vec<MessageRow>>;
    fn channel_feed(
        &self,
        agent_id: &str,
        after_id: i64,
    ) -> Result<Vec<MessageRow>>;
    fn wire(&self, project_id: &str, after_id: i64) -> Result<Vec<MessageRow>>;
}
Expand description

Lookup contract: each method returns rows newer than after_id for the given filter, in ascending id order. Callers fold the returned rows into a per-tab buffer and bump after_id to the last returned id.

Required Methods§

Source

fn inbox(&self, agent_id: &str, after_id: i64) -> Result<Vec<MessageRow>>

Source

fn sent(&self, agent_id: &str, after_id: i64) -> Result<Vec<MessageRow>>

Source

fn channel_feed(&self, agent_id: &str, after_id: i64) -> Result<Vec<MessageRow>>

Source

fn wire(&self, project_id: &str, after_id: i64) -> Result<Vec<MessageRow>>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§