Skip to main content

CompetitionFillSink

Trait CompetitionFillSink 

Source
pub trait CompetitionFillSink: Send + Sync {
    // Required method
    fn record_fill<'life0, 'life1, 'async_trait>(
        &'life0 self,
        fill: &'life1 Fill,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Minimal sink the recorder depends on: persist one competition fill.

Implemented by CompetitionService; abstracted so the recorder’s only dependency is “record a fill”, which keeps it decoupled and unit-testable.

Required Methods§

Source

fn record_fill<'life0, 'life1, 'async_trait>( &'life0 self, fill: &'life1 Fill, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§