Skip to main content

SuotarCallAudit

Trait SuotarCallAudit 

Source
pub trait SuotarCallAudit: Send + Sync {
    // Required methods
    fn started<'life0, 'async_trait>(
        &'life0 self,
        started: SuotarCallStarted,
    ) -> Pin<Box<dyn Future<Output = Option<Uuid>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn finished<'life0, 'async_trait>(
        &'life0 self,
        call_id: Uuid,
        finished: SuotarCallFinished,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Persists one suotar_api_calls row per call. A trait because the table is in the models crate, which depends on this one. Implementations must scrub the bodies.

Required Methods§

Source

fn started<'life0, 'async_trait>( &'life0 self, started: SuotarCallStarted, ) -> Pin<Box<dyn Future<Output = Option<Uuid>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the row id, which travels out as CORRELATION_ID_HEADER. None means the row could not be written; the call goes out anyway.

Source

fn finished<'life0, 'async_trait>( &'life0 self, call_id: Uuid, finished: SuotarCallFinished, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§