Skip to main content

Error

Type Alias Error 

Source
pub type Error = VfError;

Aliased Type§

pub enum Error {
    Op {
        index: usize,
        err_no: u32,
        domain: ErrorDomain,
        operation: Option<&'static str>,
        path: Option<PathBuf>,
    },
    OpUnattributed {
        err_no: u32,
        domain: ErrorDomain,
        operation: Option<&'static str>,
        path: Option<PathBuf>,
    },
    Transport {
        index: Option<usize>,
        kind: TransportKind,
        message: String,
        operation: Option<&'static str>,
        path: Option<PathBuf>,
    },
}

Variants§

§

Op

A filesystem status failure; err_no is errno-style or an NFS4ERR code, mirroring the C tc_res struct.

Fields

§index: usize
§err_no: u32
§operation: Option<&'static str>
§

OpUnattributed

A filesystem / protocol status that cannot be attributed to a specific operation index (for example a compound-level failure with no per-op result). Unlike Op, it does not pretend the failure is operation 0. index reports None.

Fields

§err_no: u32
§operation: Option<&'static str>
§

Transport

A transport / client-side failure with a human-readable message; there is no filesystem status (err_no reports VF_ERR_RPC). index is None when the failure cannot be attributed to any operation.

Fields

§index: Option<usize>
§message: String
§operation: Option<&'static str>