pub enum Requested {
Unset,
Host,
Sandbox,
}Expand description
What the invocation asked for.
Named Requested rather than Invocation only because that name is already
taken in this crate by an analyzer’s argv (crate::Invocation); it is the
same concept as rto_remote::Invocation, minus the prompt form, because a
linter is run non-interactively far more often than it is not and a prompt
that a script cannot answer is a hang rather than a gate.
Variants§
Unset
Neither flag was passed. Not a grant — the default is the sandbox.
Host
--allow-unsandboxed: run it here.
Sandbox
--sandboxed: run it in the sandbox, or not at all.
Trait Implementations§
impl Copy for Requested
impl Eq for Requested
impl StructuralPartialEq for Requested
Auto Trait Implementations§
impl Freeze for Requested
impl RefUnwindSafe for Requested
impl Send for Requested
impl Sync for Requested
impl Unpin for Requested
impl UnsafeUnpin for Requested
impl UnwindSafe for Requested
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.