Trait Strategy
Source pub trait Strategy: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn config(&self) -> &StrategyConfig;
fn state(&self) -> StrategyState;
fn on_tick<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), DrmError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn start<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), DrmError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn stop<'life0, 'async_trait>(
&'life0 mut self,
) -> Pin<Box<dyn Future<Output = Result<(), DrmError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn pause(&mut self);
fn resume(&mut self);
}