Skip to main content

EventBackend

Trait EventBackend 

Source
pub trait EventBackend: Send + Sync {
    // Required methods
    fn add_event(
        &self,
        task_id: i64,
        log_type: String,
        discussion_data: String,
    ) -> impl Future<Output = Result<Event>> + Send;
    fn list_events(
        &self,
        task_id: Option<i64>,
        limit: Option<i64>,
        log_type: Option<String>,
        since: Option<String>,
    ) -> impl Future<Output = Result<Vec<Event>>> + Send;
}
Expand description

Event (decision log) operations.

Required Methods§

Source

fn add_event( &self, task_id: i64, log_type: String, discussion_data: String, ) -> impl Future<Output = Result<Event>> + Send

Source

fn list_events( &self, task_id: Option<i64>, limit: Option<i64>, log_type: Option<String>, since: Option<String>, ) -> impl Future<Output = Result<Vec<Event>>> + 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§