Enum flatdata::ResourceStorageError [−][src]
pub enum ResourceStorageError {
Io(Error, String),
Utf8Error(Utf8Error),
MissingSchema(String),
MissingData,
WrongSignature {
resource_name: String,
diff: String,
},
UnexpectedDataSize,
TooBig {
resource_name: &'static str,
size: usize,
},
Missing,
// some variants omitted
}Expand description
Error indicating failures when reading and writing data from/to a
Storage.
Variants
Io(Error, String)
Wrapper of io::Error with resource name for which the error
occurred.
Utf8Error(Utf8Error)
Tuple Fields
0: Utf8ErrorWrapper of Utf8Error.
MissingSchema(String)
Tuple Fields
0: StringIndicates that schema for the resource with stored name is missing in resource storage.
MissingData
Indicates that part of the data is missing, e.g. one file of a multi_vector
WrongSignature
Fields
resource_name: StringResource name for which the error occurred.
diff: StringDiff from the stored schema to the expected schema.
Indicates that the schema stored in resource storage differs from 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.
TooBig
Fields
resource_name: &'static strResource name for which the error occurred.
size: usizeSize of the resource
A resource is too big, e.g. when references by a small number of bits
Missing
A resource / archive is missing completely
Implementations
Wraps an io::Error with additional resource name.
