pub enum BrdbSchemaError {
Show 24 variants
Wrapped(String, Box<BrdbSchemaError>),
RmpValueReadError(ValueReadError),
RmpValueWriteError(ValueWriteError),
RmpMarkerReadError(Error),
ReadError(Error),
InvalidUtf8(FromUtf8Error),
InvalidSchema(String),
InvalidHeader(u32),
MissingStruct(String),
MissingStructField(String, String),
StringNotInterned(usize),
UnknownType(String),
UnknownSchemaType(String),
UnknownStructPropertyType(String),
UnknownAsset(String, usize),
EnumIndexOutOfBounds {
enum_name: String,
index: u64,
},
ArrayIndexOutOfBounds {
index: usize,
len: usize,
},
ExpectedType(String, String),
ExpectedArrayItems,
InvalidFlatType(String),
InvalidFlatDataSize(String, usize, usize),
UnimplementedCast(String, &'static str),
ParseError(String),
UnknownWireVariant(usize),
}Variants§
Wrapped(String, Box<BrdbSchemaError>)
RmpValueReadError(ValueReadError)
RmpValueWriteError(ValueWriteError)
RmpMarkerReadError(Error)
ReadError(Error)
InvalidUtf8(FromUtf8Error)
InvalidSchema(String)
InvalidHeader(u32)
MissingStruct(String)
MissingStructField(String, String)
StringNotInterned(usize)
UnknownType(String)
UnknownSchemaType(String)
UnknownStructPropertyType(String)
UnknownAsset(String, usize)
EnumIndexOutOfBounds
ArrayIndexOutOfBounds
ExpectedType(String, String)
ExpectedArrayItems
InvalidFlatType(String)
InvalidFlatDataSize(String, usize, usize)
UnimplementedCast(String, &'static str)
ParseError(String)
UnknownWireVariant(usize)
Implementations§
Trait Implementations§
Source§impl Debug for BrdbSchemaError
impl Debug for BrdbSchemaError
Source§impl Display for BrdbSchemaError
impl Display for BrdbSchemaError
Source§impl Error for BrdbSchemaError
impl Error for BrdbSchemaError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<BrdbSchemaError> for BrError
impl From<BrdbSchemaError> for BrError
Source§fn from(source: BrdbSchemaError) -> Self
fn from(source: BrdbSchemaError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for BrdbSchemaError
impl From<Error> for BrdbSchemaError
Source§impl From<FromUtf8Error> for BrdbSchemaError
impl From<FromUtf8Error> for BrdbSchemaError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<ValueReadError> for BrdbSchemaError
impl From<ValueReadError> for BrdbSchemaError
Source§fn from(source: ValueReadError) -> Self
fn from(source: ValueReadError) -> Self
Converts to this type from the input type.
Source§impl From<ValueWriteError> for BrdbSchemaError
impl From<ValueWriteError> for BrdbSchemaError
Source§fn from(source: ValueWriteError) -> Self
fn from(source: ValueWriteError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for BrdbSchemaError
impl !UnwindSafe for BrdbSchemaError
impl Freeze for BrdbSchemaError
impl Send for BrdbSchemaError
impl Sync for BrdbSchemaError
impl Unpin for BrdbSchemaError
impl UnsafeUnpin for BrdbSchemaError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more