pub enum SboxError {
Show 24 variants
ConfigNotFound(PathBuf),
ConfigRead {
path: PathBuf,
source: Error,
},
ConfigParse {
path: PathBuf,
source: Error,
},
ConfigValidation {
message: String,
},
UnknownProfile {
name: String,
},
UnknownPreset {
name: String,
},
NoShellResolved,
UnsafeExecutionPolicy {
command: String,
reason: String,
},
PreRunFailed {
pre_run: String,
command: String,
status: u8,
},
SignatureVerificationUnavailable {
image: String,
reason: String,
},
SignatureVerificationFailed {
image: String,
policy: PathBuf,
reason: String,
},
InitConfigExists {
path: PathBuf,
},
InitWrite {
path: PathBuf,
source: Error,
},
ProfileResolutionFailed {
command: String,
},
CommandSpawn {
program: String,
source: Error,
},
BackendUnavailable {
backend: String,
source: Error,
},
BackendCommandFailed {
backend: String,
command: String,
status: i32,
},
SandboxExecutionNotImplemented {
profile: String,
backend: String,
},
UnsupportedMountType {
mount_type: String,
},
HostPathNotFound {
kind: &'static str,
name: String,
path: PathBuf,
},
UnsupportedSecretSource {
name: String,
secret_source: String,
},
ReusableSandboxSessionsNotImplemented {
profile: String,
},
CurrentDirectory {
source: Error,
},
LoggingInit {
source: Box<dyn Error + Send + Sync>,
},
}Variants§
ConfigNotFound(PathBuf)
ConfigRead
ConfigParse
ConfigValidation
UnknownProfile
UnknownPreset
NoShellResolved
UnsafeExecutionPolicy
PreRunFailed
SignatureVerificationFailed
InitConfigExists
InitWrite
ProfileResolutionFailed
CommandSpawn
BackendCommandFailed
SandboxExecutionNotImplemented
UnsupportedMountType
HostPathNotFound
UnsupportedSecretSource
ReusableSandboxSessionsNotImplemented
CurrentDirectory
LoggingInit
Trait Implementations§
Source§impl Error for SboxError
impl Error for SboxError
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 SboxError
impl !RefUnwindSafe for SboxError
impl Send for SboxError
impl Sync for SboxError
impl Unpin for SboxError
impl UnsafeUnpin for SboxError
impl !UnwindSafe for SboxError
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