Trait fif::formats::FormatSteps

source ·
pub trait FormatSteps {
    // Required methods
    fn rename<W: Write>(
        &self,
        _f: &mut W,
        _from: &Path,
        _to: &Path
    ) -> Result<()>;
    fn no_known_extension<W: Write>(
        &self,
        _f: &mut W,
        _path: &Path
    ) -> Result<()>;
    fn unreadable<W: Write>(&self, _f: &mut W, _path: &Path) -> Result<()>;
    fn unknown_type<W: Write>(&self, _f: &mut W, _path: &Path) -> Result<()>;
    fn header<W: Write>(&self, _f: &mut W) -> Result<()>;
    fn footer<W: Write>(&self, _f: &mut W) -> Result<()>;

    // Provided method
    fn write_steps<W: Write>(
        &self,
        f: &mut W,
        findings: &[Findings],
        errors: &[ScanError<'_>]
    ) -> Result<()> { ... }
}

Required Methods§

source

fn rename<W: Write>(&self, _f: &mut W, _from: &Path, _to: &Path) -> Result<()>

source

fn no_known_extension<W: Write>(&self, _f: &mut W, _path: &Path) -> Result<()>

source

fn unreadable<W: Write>(&self, _f: &mut W, _path: &Path) -> Result<()>

source

fn unknown_type<W: Write>(&self, _f: &mut W, _path: &Path) -> Result<()>

source

fn header<W: Write>(&self, _f: &mut W) -> Result<()>

source

fn footer<W: Write>(&self, _f: &mut W) -> Result<()>

Provided Methods§

source

fn write_steps<W: Write>( &self, f: &mut W, findings: &[Findings], errors: &[ScanError<'_>] ) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§