Enum flatdata::ResourceStorageError[][src]

pub enum ResourceStorageError {
    Io(ErrorString),
    Utf8Error(Utf8Error),
    MissingSchema(String),
    WrongSignature {
        resource_name: String,
        diff: String,
    },
    UnexpectedDataSize,
}

Error indicating failures when reading and writing data from/to a Storage.

Variants

Wrapper of io::Error with resource name for which the error occurred.

Wrapper of Utf8Error.

Indicates that schema for the resource with stored name is missing in resource storage.

Indicates that the schema stored in resource storage differs from the expected schema.

Fields of WrongSignature

Resource name for which the error occurred.

Diff from the stored schema to the expected schema.

Indicates that the size of the data does not fit to the serialized control size.

When data is serialized to resource storage, a control header is written which, in particular, contains the final size of the whole resource.

Methods

impl ResourceStorageError
[src]

Wraps an io::Error with additional resource name.

Trait Implementations

impl Debug for ResourceStorageError
[src]

Formats the value using the given formatter. Read more

impl Display for ResourceStorageError
[src]

Formats the value using the given formatter. Read more

impl Error for ResourceStorageError
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

Auto Trait Implementations