Enum prost_reflect::SetFieldError
source · pub enum SetFieldError {
NotFound,
InvalidType {
field: FieldDescriptor,
value: Value,
},
}
Expand description
Error type returned by DynamicMessage::try_set_field()
.
Variants§
NotFound
The field was not found.
InvalidType
Fields
§
field: FieldDescriptor
The descriptor for the field which could not be set.
The value type was not compatible with the field type (see Value::is_valid_for_field
).
Trait Implementations§
source§impl Clone for SetFieldError
impl Clone for SetFieldError
source§fn clone(&self) -> SetFieldError
fn clone(&self) -> SetFieldError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SetFieldError
impl Debug for SetFieldError
source§impl Display for SetFieldError
impl Display for SetFieldError
source§impl Error for SetFieldError
impl Error for SetFieldError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 PartialEq<SetFieldError> for SetFieldError
impl PartialEq<SetFieldError> for SetFieldError
source§fn eq(&self, other: &SetFieldError) -> bool
fn eq(&self, other: &SetFieldError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SetFieldError
Auto Trait Implementations§
impl RefUnwindSafe for SetFieldError
impl Send for SetFieldError
impl Sync for SetFieldError
impl Unpin for SetFieldError
impl UnwindSafe for SetFieldError
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