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
The value type was not compatible with the field type (see Value::is_valid_for_field
).
Fields
§
field: FieldDescriptor
The descriptor for the field which could not be set.
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)>
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 PartialEq for SetFieldError
impl PartialEq for SetFieldError
impl StructuralPartialEq for SetFieldError
Auto Trait Implementations§
impl !Freeze for SetFieldError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)