pub enum ConstraintDecodeError {
DescriptorPoolInitialization(String),
MissingExtension(&'static str),
Decode(DecodeError),
}Expand description
Error returned while decoding buf.validate descriptor extensions.
Variants§
DescriptorPoolInitialization(String)
The generated descriptor pool could not be decoded.
MissingExtension(&'static str)
The expected extension descriptor is missing from the pool.
Decode(DecodeError)
The extension payload could not be decoded into the typed rule.
Trait Implementations§
Source§impl Debug for ConstraintDecodeError
impl Debug for ConstraintDecodeError
Source§impl Display for ConstraintDecodeError
impl Display for ConstraintDecodeError
Source§impl Error for ConstraintDecodeError
impl Error for ConstraintDecodeError
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<DecodeError> for ConstraintDecodeError
impl From<DecodeError> for ConstraintDecodeError
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ConstraintDecodeError
impl RefUnwindSafe for ConstraintDecodeError
impl Send for ConstraintDecodeError
impl Sync for ConstraintDecodeError
impl Unpin for ConstraintDecodeError
impl UnsafeUnpin for ConstraintDecodeError
impl UnwindSafe for ConstraintDecodeError
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