#[non_exhaustive]pub enum SandboxError {
InvalidSource {
message: String,
},
InvalidOption {
message: String,
},
HuggingFacePolicy {
message: String,
},
SourceResolution {
message: String,
},
Wheel {
message: String,
},
ImageBuild {
message: String,
},
ContainerStartup {
message: String,
},
Docker {
message: String,
},
}Expand description
Errors returned by the public rlmesh-sandbox API.
This enum is #[non_exhaustive]: new variants may be added in future
releases, so downstream match expressions must include a wildcard arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidSource
An environment source reference could not be parsed.
InvalidOption
A sandbox option (base image, packages, imports, num_envs, vectorization mode, rlmesh package spec, …) was invalid.
HuggingFacePolicy
An hf:// source was rejected by the trust/pinning policy (remote code
not trusted, or revision not pinned to a full git SHA).
SourceResolution
Resolving an hf:// revision (via git ls-remote) or materializing the
source tree failed.
Wheel
Selecting or reading a local RLMesh wheel failed.
ImageBuild
Building the sandbox image failed (e.g. docker build returned an
error, or the build context could not be assembled).
ContainerStartup
Starting the container or waiting for it to become ready failed.
Fields
Docker
Invoking the docker CLI failed (e.g. docker is not installed or the
daemon is unavailable), or a docker subcommand returned an error.
Trait Implementations§
Source§impl Debug for SandboxError
impl Debug for SandboxError
Source§impl Display for SandboxError
impl Display for SandboxError
Source§impl Error for SandboxError
impl Error for SandboxError
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()
Auto Trait Implementations§
impl Freeze for SandboxError
impl RefUnwindSafe for SandboxError
impl Send for SandboxError
impl Sync for SandboxError
impl Unpin for SandboxError
impl UnsafeUnpin for SandboxError
impl UnwindSafe for SandboxError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request