Enum fog_pack::error::Error[][src]

pub enum Error {
    OldVersion(String),
    SchemaMismatch {
        actual: Option<Hash>,
        expected: Option<Hash>,
    },
    SerdeFail(String),
    BadHeader(String),
    FailDecompress(String),
    LengthTooLong {
        max: usize,
        actual: usize,
    },
    LengthTooShort {
        step: &'static str,
        actual: usize,
        expected: usize,
    },
    BadSignature,
    BadEncode(String),
    FailValidate(String),
    CryptoError(CryptoError),
    ParseLimit(String),
}

Variants

OldVersion(String)

Occurs when a subtype is using a version format that is no longer accepted. This is mainly for recognizing when the Cryptographic types and signatures use old, no longer accepted algorithms.

SchemaMismatch

Occurs when a schema doesn’t match the document’s schema, a Schema was used when one isn’t specified by the document, or a NoSchema was used when a document specified a schema.

Fields of SchemaMismatch

actual: Option<Hash>expected: Option<Hash>
SerdeFail(String)

Occurs when serde serialization or deserialization fails

BadHeader(String)

Occurs when the header (compression marker and optional schema) failed to parse correctly.

FailDecompress(String)

Occurs when zstd compression fails, possibly due to a dictionary not being present in a schema, a checksum failing, or any of the other zstd failure modes.

LengthTooLong

Document/Entry/Query was greater than maximum allowed size on decode

Fields of LengthTooLong

max: usizeactual: usize
LengthTooShort

Document/Entry/Query ended too early.

Fields of LengthTooShort

step: &'static stractual: usizeexpected: usize
BadSignature

Signature attached to end of Document/Entry/Query didn’t validate

BadEncode(String)

Basic fog-pack encoding failure

FailValidate(String)

Schema validation failure.

CryptoError(CryptoError)

Failure within the cryptographic submodule.

ParseLimit(String)

Schema or validation hit some parsing limit.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl Error for Error[src]

impl Error for Error[src]

impl From<CryptoError> for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

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

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

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

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<V, T> VZip<V> for T where
    V: MultiLane<T>,