Skip to content
API REFERENCEUsage guides →

cellpack::loader::Error ​

enum

Module contract · All interfaces

At a glance ​

pub enum Error {
    Config(String),
    Access {
        position: u64,
        cell: u64,
    },
    Io(Error),
    CellPack(Error),
    Plan(String),
    Process(i32),
    Accesses(i32),
    WorkerPanic,
    Busy,
    Aborted,
}

A loader failure.

The variants classify the failure: caller input (Error::Config), an unusable access (Error::Access), the environment (Error::Io, Error::CellPack), a plan binding or option (Error::Plan), a callback’s status (Error::Process, Error::Accesses), a panicked thread (Error::WorkerPanic), an occupied loader or ring (Error::Busy) and cancellation (Error::Aborted).

Fields and variants ​

Config ​

Config(String)

A declaration or a protocol use was rejected: a builder, schema, layout or plan value, a config field, or a run/ring call out of order.

Access ​

Access

An access names a cell outside the data source; position is the access index (k), cell the id it produced.

Io ​

Io(Error)

An OS error: opening or stating an input, a ring allocation, or a read that returned fewer bytes than the record needs.

CellPack ​

CellPack(Error)

A format layer error: a corrupt chunk, metadata or record.

Plan ​

Plan(String)

A plan does not bind to this loader, its inputs or the sequence, or a plan option cannot hold (a range, a cost model, a block size).

Process ​

Process(i32)

A process function returned a nonzero status, given here.

Accesses ​

Accesses(i32)

An external access function returned a nonzero status, given here.

WorkerPanic ​

WorkerPanic

A worker or plan thread panicked; caught, not unwound.

Busy ​

Busy

The loader already serves a run, or the ring already has a producer.

Aborted ​

Aborted

The run was cancelled, by crate::loader::Run::cancel, a ring abort, a failing thread or a dropped Run.

Implemented traits ​

impl Debug for Error
impl Display for Error
impl Error for Error
impl From<Error> for Error
impl From<Error> for Error

Contract reference ​

See the module reference for semantic input/output rules, units, allocation, mutation, failure behavior, and lifetime requirements. Declarations and documented members are synchronized from the crate source.

Definition