1 2 3 4 5 6 7 8
#[async_trait::async_trait] pub trait Failover { type Item; type InputError; type Error; async fn failover(&self, item: &Self::Item, ie: &Self::InputError) -> Result<(), Self::Error>; }