pub enum TaintError {
NotAllowed {
reason: String,
},
UnresolvedResource,
}Expand description
Why tool output could not be protected.
Variants§
NotAllowed
Only allowed calls have output worth labeling; refusing here keeps “we ran a denied tool anyway” from being papered over.
UnresolvedResource
The call never resolved a resource (unbound tool or failed resource-argument resolution), so there is nothing to tie the label to.
Trait Implementations§
Source§impl Debug for TaintError
impl Debug for TaintError
Source§impl Display for TaintError
impl Display for TaintError
Source§impl Error for TaintError
impl Error for TaintError
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()
Auto Trait Implementations§
impl Freeze for TaintError
impl RefUnwindSafe for TaintError
impl Send for TaintError
impl Sync for TaintError
impl Unpin for TaintError
impl UnsafeUnpin for TaintError
impl UnwindSafe for TaintError
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