pub struct InvocationReadError {
pub combination_id: String,
pub argument_id: String,
pub expected: String,
pub problem: InvocationReadProblem,
}Expand description
A handler read its resolved invocation in a way the registry does not allow.
Never the user’s mistake: resolution already proved the argv legal, so what
remains is the program asking for an argument id its combination does not
declare, asking for it as the wrong type, asking for a required value of an
argument that may be absent, or asking for an integer type the registry’s
range does not fit. Retrying the same command cannot help, so this is
reported as a defect in the program (cli_invocation_invalid, exit 1), not
as a usage error.
The fields name the combination, the argument id and the type the handler asked for — never the argument’s value.
Fields§
§combination_id: String§argument_id: String§expected: StringThe read the handler attempted, e.g. text, optional i64 as u16.
problem: InvocationReadProblemTrait Implementations§
Source§impl Clone for InvocationReadError
impl Clone for InvocationReadError
Source§impl Debug for InvocationReadError
impl Debug for InvocationReadError
Source§impl Display for InvocationReadError
impl Display for InvocationReadError
impl Eq for InvocationReadError
Source§impl Error for InvocationReadError
impl Error for InvocationReadError
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 From<InvocationReadError> for CliStop
impl From<InvocationReadError> for CliStop
Source§fn from(error: InvocationReadError) -> Self
fn from(error: InvocationReadError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InvocationReadError
impl PartialEq for InvocationReadError
impl StructuralPartialEq for InvocationReadError
Auto Trait Implementations§
impl Forget for InvocationReadError
impl Freeze for InvocationReadError
impl Move for InvocationReadError
impl RefUnwindSafe for InvocationReadError
impl Send for InvocationReadErrorwhere
RawVecInner: Send,
impl Sync for InvocationReadErrorwhere
RawVecInner: Sync,
impl Unpin for InvocationReadError
impl UnsafeUnpin for InvocationReadError
impl UnwindSafe for InvocationReadErrorwhere
RawVecInner: UnwindSafe,
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.