[][src]Enum json_job_dispatch::DirectorError

pub enum DirectorError {
    NotADirectory {
        path: PathBuf,
    },
    DuplicateHandler {
        kind: String,
    },
    CreateDirectory {
        outbox: Outbox,
        source: Error,
    },
    CreateFile {
        filename: PathBuf,
        source: Error,
    },
    WriteFile {
        filename: PathBuf,
        source: Error,
    },
    MoveJob {
        outbox: Outbox,
        filepath: PathBuf,
        source: Error,
    },
    ListQueue {
        path: PathBuf,
        source: Error,
    },
    WatchQueue {
        path: PathBuf,
        source: Error,
    },
    OpenJob {
        filepath: PathBuf,
        source: Error,
    },
    CreateDeferJob {
        filepath: PathBuf,
        source: Error,
    },
    WriteDeferJob {
        filepath: PathBuf,
        source: Error,
    },
    Handler {
        source: Box<dyn Error + Send + Sync>,
    },
    // some variants omitted
}

Errors which may occur when running a director.

Variants

NotADirectory

The director was given a non-directory as its input queue path.

Fields of NotADirectory

path: PathBuf

The path given to the director.

DuplicateHandler

Two handlers for the same kind were added.

Fields of DuplicateHandler

kind: String

The duplicate kind.

CreateDirectory

Failure to create outbox directory.

Fields of CreateDirectory

outbox: Outbox

The outbox that could not be created.

source: Error

The source of the error.

CreateFile

Failure to create a stamp or reason file.

Fields of CreateFile

filename: PathBuf

The file that could not be created.

source: Error

The source of the error.

WriteFile

Failure to write a stamp or reason file.

Fields of WriteFile

filename: PathBuf

The file that could not be written.

source: Error

The source of the error.

MoveJob

Failure to move a job to an outbox.

Fields of MoveJob

outbox: Outbox

The outbox that the job was to be moved into.

filepath: PathBuf

The job file that could not be moved.

source: Error

The source of the error.

ListQueue

Failure to list the input queue's directory.

Fields of ListQueue

path: PathBuf

The path to the queue.

source: Error

The source of the error.

WatchQueue

Failure to watch a queue directory for new files.

Fields of WatchQueue

path: PathBuf

The path to the queue.

source: Error

The source of the error.

OpenJob

Failure to open a job file.

Fields of OpenJob

filepath: PathBuf

The path to the job.

source: Error

The source of the error.

CreateDeferJob

Failure to create a defer job.

Fields of CreateDeferJob

filepath: PathBuf

The path to the defer job.

source: Error

The source of the error.

WriteDeferJob

Failure to write a defer job.

Fields of WriteDeferJob

filepath: PathBuf

The path to the defer job.

source: Error

The source of the error.

Handler

A handler returned an error.

Fields of Handler

source: Box<dyn Error + Send + Sync>

The source of the error.

Trait Implementations

impl Display for DirectorError[src]

impl Debug for DirectorError[src]

impl Error for DirectorError[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,