pub enum BackendContractError {
UnsupportedCapability {
capability: BackendCapability,
},
CommandEnvironmentMismatch,
InvalidRuntimeContext {
source: CompositionError,
},
EnvironmentPreparation {
source: CompositionError,
},
FilesystemEvaluation {
source: CompositionError,
},
WorkingDirectoryDenied {
path: PathBuf,
},
WorkingDirectoryResolution {
path: PathBuf,
},
MissingRuntimeCurrentDirectory,
NetworkEvaluation {
source: CompositionError,
},
BackendIdentityMismatch,
BackendCapabilitiesMismatch,
}Expand description
Common failures at the portable backend contract boundary.
Variants§
UnsupportedCapability
The backend cannot safely enforce one required capability.
Fields
capability: BackendCapabilityThe missing capability.
CommandEnvironmentMismatch
The command and composed sandbox were built from different environment specifications.
InvalidRuntimeContext
The backend could not construct a safe runtime path context.
Fields
source: CompositionErrorThe composition failure raised while narrowing the runtime context.
EnvironmentPreparation
The backend could not construct the selected environment base.
Fields
source: CompositionErrorThe composition failure raised while applying the environment.
FilesystemEvaluation
The effective filesystem policy rejected a backend query.
Fields
source: CompositionErrorThe composition failure raised while evaluating filesystem access.
WorkingDirectoryDenied
The command’s working directory is outside the effective filesystem policy.
WorkingDirectoryResolution
A relative working directory had no runtime current directory.
MissingRuntimeCurrentDirectory
The command omitted a working directory and the runtime did not supply the directory that would otherwise be inherited by the child.
NetworkEvaluation
The effective network policy rejected a backend query.
Fields
source: CompositionErrorThe composition failure raised while evaluating network access.
BackendIdentityMismatch
A prepared handoff was used with a different backend instance than the one whose capabilities were checked.
BackendCapabilitiesMismatch
A prepared handoff was used after its backend changed capabilities.
Trait Implementations§
Source§impl Clone for BackendContractError
impl Clone for BackendContractError
Source§impl Debug for BackendContractError
impl Debug for BackendContractError
Source§impl Display for BackendContractError
impl Display for BackendContractError
impl Eq for BackendContractError
Source§impl Error for BackendContractError
impl Error for BackendContractError
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()