pub enum NoAnswer {
Problem(ToolProblem),
Hold(Hold),
}Expand description
What a Tool returns instead of a value: a ToolProblem, answered, or
a Hold, the promise of an answer. A Tool function returning
Result<R, NoAnswer> declares R; ? turns either into one.
Variants§
Trait Implementations§
impl Eq for NoAnswer
Source§impl Error for NoAnswer
impl Error for NoAnswer
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<ToolProblem> for NoAnswer
impl From<ToolProblem> for NoAnswer
Source§fn from(problem: ToolProblem) -> NoAnswer
fn from(problem: ToolProblem) -> NoAnswer
Converts to this type from the input type.
impl StructuralPartialEq for NoAnswer
Auto Trait Implementations§
impl Forget for NoAnswer
impl Freeze for NoAnswer
impl Move for NoAnswer
impl RefUnwindSafe for NoAnswer
impl Send for NoAnswerwhere
RawVecInner: Send,
impl Sync for NoAnswerwhere
RawVecInner: Sync,
impl Unpin for NoAnswer
impl UnsafeUnpin for NoAnswer
impl UnwindSafe for NoAnswerwhere
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