pub enum ReflectError {
Decode(DecodeError),
Pool(String),
NotFound(String),
Field(String),
}Expand description
Errors produced by reflection operations.
Variants§
Decode(DecodeError)
Failed to decode the raw bytes as a FileDescriptorSet.
Pool(String)
The descriptor pool could not be constructed from the provided descriptors.
NotFound(String)
A named symbol (message, service, enum, field) was not found in the pool.
Field(String)
Field name or type error during dynamic message access.
Trait Implementations§
Source§impl Debug for ReflectError
impl Debug for ReflectError
Source§impl Display for ReflectError
impl Display for ReflectError
Source§impl Error for ReflectError
impl Error for ReflectError
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<JsonError> for ReflectError
impl From<JsonError> for ReflectError
Source§impl From<OxiProtoError> for ReflectError
impl From<OxiProtoError> for ReflectError
Source§fn from(e: OxiProtoError) -> Self
fn from(e: OxiProtoError) -> Self
Converts to this type from the input type.
Source§impl From<ReflectError> for OxiProtoError
impl From<ReflectError> for OxiProtoError
Source§fn from(e: ReflectError) -> Self
fn from(e: ReflectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ReflectError
impl RefUnwindSafe for ReflectError
impl Send for ReflectError
impl Sync for ReflectError
impl Unpin for ReflectError
impl UnsafeUnpin for ReflectError
impl UnwindSafe for ReflectError
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