[][src]Enum flatdata::ResourceStorageError

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

Io(ErrorString)

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

Utf8Error(Utf8Error)

Wrapper of Utf8Error.

MissingSchema(String)

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

WrongSignature

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

Fields of WrongSignature

resource_name: String

Resource name for which the error occurred.

diff: String

Diff from the stored schema to the expected schema.

UnexpectedDataSize

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]

pub fn from_io_error(err: Error, resource_name: String) -> Self
[src]

Wraps an io::Error with additional resource name.

Trait Implementations

impl Debug for ResourceStorageError
[src]

impl Display for ResourceStorageError
[src]

impl Error for ResourceStorageError
[src]

fn cause(&self) -> Option<&dyn Error>
1.0.0
[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

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

fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0
[src]

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

Auto Trait Implementations

Blanket Implementations

impl<T> From for T
[src]

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

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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