Enum savefile::SavefileError [−][src]
#[must_use]pub enum SavefileError { IncompatibleSchema { message: String, }, IOError { io_error: Error, }, InvalidUtf8 { msg: String, }, OutOfMemory { err: AllocErr, }, MemoryAllocationLayoutError, ArrayvecCapacityError { msg: String, }, }
This object represents an error in deserializing or serializing an item.
Variants
IncompatibleSchema
Fields of IncompatibleSchema
message: String |
IOError
Fields of IOError
io_error: Error |
InvalidUtf8
Fields of InvalidUtf8
msg: String |
OutOfMemory
Fields of OutOfMemory
err: AllocErr |
MemoryAllocationLayoutError
ArrayvecCapacityError
Fields of ArrayvecCapacityError
msg: String |
Trait Implementations
impl Debug for SavefileError
[src]
impl Debug for SavefileError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl From<Error> for SavefileError
[src]
impl From<Error> for SavefileError
fn from(s: Error) -> SavefileError
[src]
fn from(s: Error) -> SavefileError
Performs the conversion.
impl From<AllocErr> for SavefileError
[src]
impl From<AllocErr> for SavefileError
fn from(s: AllocErr) -> SavefileError
[src]
fn from(s: AllocErr) -> SavefileError
Performs the conversion.
impl From<FromUtf8Error> for SavefileError
[src]
impl From<FromUtf8Error> for SavefileError
fn from(s: FromUtf8Error) -> SavefileError
[src]
fn from(s: FromUtf8Error) -> SavefileError
Performs the conversion.
impl<T> From<CapacityError<T>> for SavefileError
[src]
impl<T> From<CapacityError<T>> for SavefileError
fn from(s: CapacityError<T>) -> SavefileError
[src]
fn from(s: CapacityError<T>) -> SavefileError
Performs the conversion.
Auto Trait Implementations
impl Send for SavefileError
impl Send for SavefileError
impl Sync for SavefileError
impl Sync for SavefileError