Trait ObjectTraverserHandler
Source pub trait ObjectTraverserHandler: Send + Sync {
// Required methods
fn filter_path<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 str,
) -> Pin<Box<dyn Future<Output = ObjectTraverseFilterResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn filter_object<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
object: &'life1 NONObjectInfo,
meta: Option<&'life2 NamedObjectMetaData>,
) -> Pin<Box<dyn Future<Output = ObjectTraverseFilterResult> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn on_error<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 ObjectId,
e: BuckyError,
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn on_missing<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 ObjectId,
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn on_object<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
object: &'life1 NONObjectInfo,
meta: &'life2 Option<NamedObjectMetaData>,
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn on_chunk<'life0, 'life1, 'async_trait>(
&'life0 self,
chunk_id: &'life1 ChunkId,
) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}