pub enum MicrosandboxError {
Show 68 variants
Io(Error),
Custom(AnyError),
OciDistribution(Error),
HttpRequest(Error),
HttpMiddleware(Error),
Database(Error),
ManifestNotFound,
JoinError(JoinError),
UnsupportedImageHashAlgorithm(String),
ImageLayerDownloadFailed(String),
InvalidPathPair(String),
InvalidPortPair(String),
InvalidEnvPair(String),
InvalidMicroVMConfig(InvalidMicroVMConfigError),
InvalidRLimitFormat(String),
InvalidRLimitValue(String),
InvalidRLimitResource(String),
SerdeJson(Error),
SerdeYaml(Error),
Toml(Error),
ConfigValidation(String),
ConfigValidationErrors(Vec<String>),
ServiceBelongsToNoGroup(String),
ServiceBelongsToWrongGroup(String, String),
FailedToGetShutdownEventFd(i32),
FailedToShutdown(String),
FailedToStartVM(i32),
PathNotFound(String),
RootFsPathNotFound(String),
SupervisorBinaryNotFound(String),
StartVmFailed(i32),
ProcessWaitError(String),
SupervisorError(String),
ProcessKillError(String),
ConfigMerge(String),
NoAvailableIPs,
WalkDir(Error),
StripPrefix(StripPrefixError),
NixError(Error),
SystemTime(SystemTimeError),
LayerExtraction(String),
LayerHandling {
source: Error,
layer: String,
},
ConfigNotFound(String),
RootfsNotFound(String),
ImageReferenceError(String),
ServiceStillRunning(String),
InvalidArgument(String),
PathValidation(String),
MicrosandboxConfigNotFound(String),
ConfigParseError(String),
LogNotFound(String),
PagerError(String),
MicrosandboxUtilsError(MicrosandboxUtilsError),
MigrationError(MigrateError),
DockerRegistryResponseError(DockerRegistryResponseError),
InvalidReferenceSelectorFormat(String),
InvalidReferenceSelectorDigest(String),
NotImplemented(String),
SandboxNotFoundInConfig(String, PathBuf),
InvalidLogLevel(u8),
EmptyPathSegment,
InvalidPathComponent(String),
ScriptNotFoundInSandbox(String, String),
SandboxServerError(String),
InvalidNetworkScope(String),
MissingStartOrExecOrShell,
CommandExists(String),
CommandNotFound(String),
}
Expand description
An error that occurred during a file system operation.
Variants§
Io(Error)
An I/O error.
Custom(AnyError)
An error that can represent any error.
OciDistribution(Error)
An error that occurred during an OCI distribution operation.
HttpRequest(Error)
An error that occurred during an HTTP request.
HttpMiddleware(Error)
An error that occurred during an HTTP middleware operation.
Database(Error)
An error that occurred during a database operation.
ManifestNotFound
An error that occurred when a manifest was not found.
JoinError(JoinError)
An error that occurred when a join handle returned an error.
UnsupportedImageHashAlgorithm(String)
An error that occurred when an unsupported image hash algorithm was used.
ImageLayerDownloadFailed(String)
An error that occurred when an image layer download failed.
InvalidPathPair(String)
An error that occurred when an invalid path pair was used.
InvalidPortPair(String)
An error that occurred when an invalid port pair was used.
InvalidEnvPair(String)
An error that occurred when an invalid environment variable pair was used.
InvalidMicroVMConfig(InvalidMicroVMConfigError)
An error that occurred when an invalid MicroVm configuration was used.
InvalidRLimitFormat(String)
An error that occurred when an invalid resource limit format was used.
InvalidRLimitValue(String)
An error that occurred when an invalid resource limit value was used.
InvalidRLimitResource(String)
An error that occurred when an invalid resource limit resource was used.
SerdeJson(Error)
An error that occurred when a Serde JSON error occurred.
SerdeYaml(Error)
An error that occurred when a Serde YAML error occurred.
Toml(Error)
An error that occurred when a TOML error occurred.
ConfigValidation(String)
An error that occurred when a configuration validation error occurred.
ConfigValidationErrors(Vec<String>)
An error that occurred when a configuration validation error occurred.
ServiceBelongsToNoGroup(String)
An error that occurs when trying to access group resources for a service that has no group
ServiceBelongsToWrongGroup(String, String)
An error that occurs when trying to access group resources for a service that belongs to a different group.
FailedToGetShutdownEventFd(i32)
An error that occurred when failed to get shutdown eventfd
FailedToShutdown(String)
An error that occurred when failed to write to shutdown eventfd
FailedToStartVM(i32)
An error that occurred when failed to start VM
PathNotFound(String)
An error that occurred when a path does not exist
RootFsPathNotFound(String)
An error that occurred when a rootfs path does not exist
SupervisorBinaryNotFound(String)
An error that occurred when the supervisor binary was not found
StartVmFailed(i32)
An error that occurred when failed to start VM
ProcessWaitError(String)
An error that occurred when waiting for a process to exit
SupervisorError(String)
An error that occurred running the supervisor.
ProcessKillError(String)
An error that occurred when failed to kill process
ConfigMerge(String)
An error that occurred when merging configurations
NoAvailableIPs
An error that occurred when no more IP addresses are available for assignment
WalkDir(Error)
An error that occurred during a walkdir operation
StripPrefix(StripPrefixError)
An error that occurred when stripping a path prefix
NixError(Error)
An error that occurred during a nix operation
SystemTime(SystemTimeError)
An error that occurred when converting system time
LayerExtraction(String)
An error that occurred during layer extraction. This typically happens when the join handle for the blocking task fails.
LayerHandling
An error that occurred during layer handling operations like opening files or unpacking archives. Contains both the underlying IO error and the path to the layer being processed.
Fields
ConfigNotFound(String)
An error that occurred when a configuration file was not found
RootfsNotFound(String)
Error when a service’s rootfs directory is not found
ImageReferenceError(String)
An error that occurred when parsing an image reference
ServiceStillRunning(String)
An error that occurred when trying to remove running services
InvalidArgument(String)
An error that occurred when invalid command line arguments were provided
PathValidation(String)
An error that occurred when validating paths
MicrosandboxConfigNotFound(String)
An error that occurred when the microsandbox config file was not found
ConfigParseError(String)
An error that occurred when failed to parse configuration file
LogNotFound(String)
An error that occurred when a log file was not found
PagerError(String)
An error that occurred when a pager error occurred
MicrosandboxUtilsError(MicrosandboxUtilsError)
An error from microsandbox-utils
MigrationError(MigrateError)
An error that occurred when a migration error occurred
DockerRegistryResponseError(DockerRegistryResponseError)
An error that occurred when a Docker registry response error occurred
InvalidReferenceSelectorFormat(String)
An error that occurred when parsing an image reference selector with an invalid format
InvalidReferenceSelectorDigest(String)
An error that occurred when parsing an invalid digest in an image reference selector
NotImplemented(String)
An error that occurred when a feature is not yet implemented
SandboxNotFoundInConfig(String, PathBuf)
An error that occurred when a sandbox was not found in the configuration
InvalidLogLevel(u8)
An error that occurs when an invalid log level is used.
EmptyPathSegment
Empty path segment
InvalidPathComponent(String)
Invalid path component (e.g. “.”, “..”, “/”)
ScriptNotFoundInSandbox(String, String)
Script not found in sandbox configuration
SandboxServerError(String)
An error that occurred running the sandbox server.
InvalidNetworkScope(String)
An error that occurred when an invalid network scope was used.
MissingStartOrExecOrShell
An error that occurred when a start script or exec command or shell is missing.
CommandExists(String)
An error that occurred when trying to install a script with the same name as an existing command.
CommandNotFound(String)
An error that occurred when a command was not found.
Implementations§
Source§impl MicrosandboxError
impl MicrosandboxError
Sourcepub fn custom(error: impl Into<Error>) -> MicrosandboxError
pub fn custom(error: impl Into<Error>) -> MicrosandboxError
Creates a new Err
result.
Trait Implementations§
Source§impl Debug for MicrosandboxError
impl Debug for MicrosandboxError
Source§impl Display for MicrosandboxError
impl Display for MicrosandboxError
Source§impl Error for MicrosandboxError
impl Error for MicrosandboxError
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
Source§impl From<AnyError> for MicrosandboxError
impl From<AnyError> for MicrosandboxError
Source§impl From<DockerRegistryResponseError> for MicrosandboxError
impl From<DockerRegistryResponseError> for MicrosandboxError
Source§fn from(source: DockerRegistryResponseError) -> Self
fn from(source: DockerRegistryResponseError) -> Self
Source§impl From<Errno> for MicrosandboxError
impl From<Errno> for MicrosandboxError
Source§impl From<Error> for MicrosandboxError
impl From<Error> for MicrosandboxError
Source§impl From<Error> for MicrosandboxError
impl From<Error> for MicrosandboxError
Source§impl From<Error> for MicrosandboxError
impl From<Error> for MicrosandboxError
Source§impl From<Error> for MicrosandboxError
impl From<Error> for MicrosandboxError
Source§impl From<Error> for MicrosandboxError
impl From<Error> for MicrosandboxError
Source§impl From<Error> for MicrosandboxError
impl From<Error> for MicrosandboxError
Source§impl From<Error> for MicrosandboxError
impl From<Error> for MicrosandboxError
Source§impl From<Error> for MicrosandboxError
impl From<Error> for MicrosandboxError
Source§impl From<Error> for MicrosandboxError
impl From<Error> for MicrosandboxError
Source§impl From<JoinError> for MicrosandboxError
impl From<JoinError> for MicrosandboxError
Source§impl From<MicrosandboxUtilsError> for MicrosandboxError
impl From<MicrosandboxUtilsError> for MicrosandboxError
Source§fn from(source: MicrosandboxUtilsError) -> Self
fn from(source: MicrosandboxUtilsError) -> Self
Source§impl From<MigrateError> for MicrosandboxError
impl From<MigrateError> for MicrosandboxError
Source§fn from(source: MigrateError) -> Self
fn from(source: MigrateError) -> Self
Source§impl From<StripPrefixError> for MicrosandboxError
impl From<StripPrefixError> for MicrosandboxError
Source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Source§impl From<SystemTimeError> for MicrosandboxError
impl From<SystemTimeError> for MicrosandboxError
Source§fn from(source: SystemTimeError) -> Self
fn from(source: SystemTimeError) -> Self
Auto Trait Implementations§
impl Freeze for MicrosandboxError
impl !RefUnwindSafe for MicrosandboxError
impl Send for MicrosandboxError
impl Sync for MicrosandboxError
impl Unpin for MicrosandboxError
impl !UnwindSafe for MicrosandboxError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.