pub enum Refusal {
ActivationWithoutRoot,
RootWithoutActivation,
RootNotAbsolute,
RootNotDirectory,
RootHasSymlink,
RootOverlapsUserData,
RootOnRemovableOrCloud,
RootNotPrivate,
RootNotCreatedByRunner,
BindingAppMismatch,
UserRootUnknown,
Io(String),
}Expand description
Why a test run was refused. Each variant names its rule through Refusal::rule. Messages
never name an environment variable: this enum is compiled into release builds too.
Variants§
ActivationWithoutRoot
The activation selector is set but no root is given.
RootWithoutActivation
A root is given but the activation selector is not set.
RootNotAbsolute
RootNotDirectory
Missing, or not a directory.
RootHasSymlink
The root itself is a symlink.
RootOverlapsUserData
Equal to, an ancestor of, a descendant of, or resolving into a real user location.
RootOnRemovableOrCloud
Inside a cloud-synchronised folder (name heuristic, see Refusal::rule).
RootNotPrivate
Not private to the current user (Unix: not owned by the user, or group/other bits set).
RootNotCreatedByRunner
No readable binding file: not a home a runner created.
BindingAppMismatch
The binding names a different app.
UserRootUnknown
The real per-user root could not be determined, so disjointness cannot be proven.
Io(String)
A filesystem error while verifying or resetting.
Implementations§
Trait Implementations§
impl Eq for Refusal
Source§impl Error for Refusal
impl Error for Refusal
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()