Trait crusty_core::load_filters::Filter[][src]

pub trait Filter<JS: JobStateValues, TS: TaskStateValues> {
    fn accept(
        &self,
        ctx: &JobCtx<JS, TS>,
        task: &Task,
        status: &HttpStatus,
        reader: Box<dyn Read + Sync + Send>
    ) -> Result; fn name(&self) -> String { ... } }

Required methods

fn accept(
    &self,
    ctx: &JobCtx<JS, TS>,
    task: &Task,
    status: &HttpStatus,
    reader: Box<dyn Read + Sync + Send>
) -> Result
[src]

Provided methods

fn name(&self) -> String[src]

Implementors

impl<JS: JobStateValues, TS: TaskStateValues> Filter<JS, TS> for RobotsTxt[src]

fn accept(
    &self,
    ctx: &JobCtx<JS, TS>,
    task: &Task,
    _status: &HttpStatus,
    reader: Box<dyn Read + Sync + Send>
) -> Result
[src]