pub enum NotInteractive {
Terminal(Reason),
NoDefault(Reason),
NoPrompt,
Invalid(String),
Ended,
Interrupted,
}Expand description
Why a component could not produce a value without a terminal.
Variants§
Terminal(Reason)
The policy says to fail.
NoDefault(Reason)
The policy asked for a default and the component has none.
NoPrompt
The component has no line-based form.
Invalid(String)
The line-based form got something it could not use.
Ended
Input ended before an answer and the component has no default.
degrade reports it as NotInteractive::NoDefault
with the reason there is no terminal.
Interrupted
Ctrl+C at a line prompt read without echo.
degrade reports it as
Outcome::Interrupted.
Trait Implementations§
Source§impl Clone for NotInteractive
impl Clone for NotInteractive
Source§impl Debug for NotInteractive
impl Debug for NotInteractive
Source§impl Display for NotInteractive
impl Display for NotInteractive
impl Eq for NotInteractive
Source§impl Error for NotInteractive
impl Error for NotInteractive
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 NotInteractive
impl PartialEq for NotInteractive
impl StructuralPartialEq for NotInteractive
Auto Trait Implementations§
impl Freeze for NotInteractive
impl RefUnwindSafe for NotInteractive
impl Send for NotInteractive
impl Sync for NotInteractive
impl Unpin for NotInteractive
impl UnsafeUnpin for NotInteractive
impl UnwindSafe for NotInteractive
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.Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
Fallible version of
ToCompactString::to_compact_string() Read moreSource§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more