pub enum LaunchError {
Show 14 variants
Unsupported,
UnsupportedArch(&'static str),
Elf(ElfError),
CanLibraryPath(String),
LandlockUnavailable,
LandlockTooOld {
abi: i32,
},
Landlock(String),
Seccomp(String),
ReadOnly(String),
Create {
path: PathBuf,
source: Error,
},
ParentCannotRun {
cant: String,
shown: String,
},
ParentDenies {
cant: String,
verb: &'static str,
shown: String,
},
ParentPolicy(String),
Exec {
program: PathBuf,
source: Error,
},
}Expand description
Errors from planning or launching.
Variants§
Unsupported
Not running on Linux.
UnsupportedArch(&'static str)
The CPU architecture has no seccomp support in this build.
Elf(ElfError)
The executable could not be analysed.
CanLibraryPath(String)
A can’s library directories can’t be passed to its loader.
Landlock is not available.
LandlockTooOld
Landlock is too old to enforce the policy faithfully.
Landlock(String)
Building or applying the Landlock ruleset failed.
Seccomp(String)
Building or applying a seccomp filter failed.
ReadOnly(String)
Mounting package-manager trees read-only failed after the probe said it works.
Create
A writable command-line file could not be created.
ParentCannotRun
Running inside another cant that may not run this cant’s program.
ParentDenies
The enclosing cant does not allow a file named on the command line.
Fields
ParentPolicy(String)
The enclosing cant’s policy (in CANT_POLICY) is malformed.
Exec
execve failed.
Trait Implementations§
Source§impl Debug for LaunchError
impl Debug for LaunchError
Source§impl Display for LaunchError
impl Display for LaunchError
Source§impl Error for LaunchError
impl Error for LaunchError
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 !RefUnwindSafe for LaunchError
impl !UnwindSafe for LaunchError
impl Forget for LaunchError
impl Freeze for LaunchError
impl Move for LaunchError
impl Send for LaunchError
impl Sync for LaunchError
impl Unpin for LaunchError
impl UnsafeUnpin for LaunchErrorwhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const () is !null: UnsafeUnpin,
PhantomData<ErrorData<CustomOwner>>: UnsafeUnpin,
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