pub trait CleanupDriver: Send + Sync {
// Required method
fn delete_absent<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
calls: &'life1 CallSlot,
scope: &'life2 BTreeMap<String, Value>,
seen: &'life3 SeenKeys,
) -> Pin<Box<dyn Future<Output = Result<u64, FaucetError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}Expand description
The scoped-cleanup primitive of a destination (#478).
Required Methods§
Sourcefn delete_absent<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
calls: &'life1 CallSlot,
scope: &'life2 BTreeMap<String, Value>,
seen: &'life3 SeenKeys,
) -> Pin<Box<dyn Future<Output = Result<u64, FaucetError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn delete_absent<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
calls: &'life1 CallSlot,
scope: &'life2 BTreeMap<String, Value>,
seen: &'life3 SeenKeys,
) -> Pin<Box<dyn Future<Output = Result<u64, FaucetError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Delete the rows matching scope whose key is not in seen, all or
nothing. Returns the rows deleted.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".