FormulaSubscriber

Trait FormulaSubscriber 

Source
pub trait FormulaSubscriber:
    Display
    + Sync
    + Send {
    type QuantityType: Quantity;

    // Required method
    fn subscribe<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<Receiver<Sample<Self::QuantityType>>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Associated Types§

Required Methods§

Source

fn subscribe<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<Receiver<Sample<Self::QuantityType>>, Error>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

Source§

impl<QOut, QIn1, QIn2> FormulaSubscriber for Formula<QOut, QIn1, QIn2>
where QOut: Quantity + 'static, QIn1: Quantity + 'static + Mul<QIn2, Output = QOut> + Div<QIn2, Output = QOut>, QIn2: Quantity + 'static,