Trait Operator

Source
pub trait Operator<Context, Builder: FullBuilderTrait> {
    // Required methods
    fn on_start(&self, context: &mut Context) -> Result<()>;
    fn on_stop(&self, context: &mut Context) -> Result<()>;
    fn on_directory_enter(
        &self,
        context: &mut Context,
        entry: &<Builder::Entry as EntryDef>::Dir,
    ) -> Result<bool>;
    fn on_directory_exit(
        &self,
        context: &mut Context,
        entry: &<Builder::Entry as EntryDef>::Dir,
    ) -> Result<()>;
    fn on_file(
        &self,
        context: &mut Context,
        entry: &<Builder::Entry as EntryDef>::File,
    ) -> Result<()>;
    fn on_link(
        &self,
        context: &mut Context,
        entry: &<Builder::Entry as EntryDef>::Link,
    ) -> Result<()>;
}

Required Methods§

Source

fn on_start(&self, context: &mut Context) -> Result<()>

Source

fn on_stop(&self, context: &mut Context) -> Result<()>

Source

fn on_directory_enter( &self, context: &mut Context, entry: &<Builder::Entry as EntryDef>::Dir, ) -> Result<bool>

Source

fn on_directory_exit( &self, context: &mut Context, entry: &<Builder::Entry as EntryDef>::Dir, ) -> Result<()>

Source

fn on_file( &self, context: &mut Context, entry: &<Builder::Entry as EntryDef>::File, ) -> Result<()>

Implementors§