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§
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>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".