pub enum FlatbufferError {
VerificationError(InvalidFlatbuffer),
FieldTypeMismatch(String, String),
SetValueNotSupported,
ParseFloatError(ParseFloatError),
TryFromIntError(TryFromIntError),
SetStringPolluted,
InvalidSchema,
TypeNotSupported(String),
InvalidUnionEnum,
InvalidTableOrStruct,
FieldNotFound,
}
Variants§
VerificationError(InvalidFlatbuffer)
FieldTypeMismatch(String, String)
SetValueNotSupported
ParseFloatError(ParseFloatError)
TryFromIntError(TryFromIntError)
SetStringPolluted
InvalidSchema
TypeNotSupported(String)
InvalidUnionEnum
InvalidTableOrStruct
FieldNotFound
Trait Implementations§
Source§impl Debug for FlatbufferError
impl Debug for FlatbufferError
Source§impl Display for FlatbufferError
impl Display for FlatbufferError
Source§impl Error for FlatbufferError
impl Error for FlatbufferError
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<InvalidFlatbuffer> for FlatbufferError
impl From<InvalidFlatbuffer> for FlatbufferError
Source§fn from(source: InvalidFlatbuffer) -> Self
fn from(source: InvalidFlatbuffer) -> Self
Converts to this type from the input type.
Source§impl From<ParseFloatError> for FlatbufferError
impl From<ParseFloatError> for FlatbufferError
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for FlatbufferError
impl From<TryFromIntError> for FlatbufferError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FlatbufferError
impl PartialEq for FlatbufferError
impl StructuralPartialEq for FlatbufferError
Auto Trait Implementations§
impl Freeze for FlatbufferError
impl RefUnwindSafe for FlatbufferError
impl Send for FlatbufferError
impl Sync for FlatbufferError
impl Unpin for FlatbufferError
impl UnwindSafe for FlatbufferError
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