pub enum ErrorCode {
Show 18 variants
Success,
InvalidConfig,
ForkFailed,
CompileError,
WaitFailed,
RootRequired,
LoadSeccompFailed,
SetrlimitFailed,
Dup2Failed,
SetuidFailed,
ExecveFailed,
SpjError,
SystemError,
CpuTimeLimitExceeded,
RealTimeLimitExceeded,
MemoryLimitExceeded,
RuntimeError,
WrongAnswer(String),
}Expand description
Error codes for the judger.
Variants§
Success
Operation completed successfully.
InvalidConfig
Configuration is invalid.
ForkFailed
Forking a new process failed.
CompileError
Compiling the source code failed.
WaitFailed
Waiting for a process failed.
RootRequired
Root privileges are required.
LoadSeccompFailed
Loading seccomp rules failed.
SetrlimitFailed
Setting resource limits failed.
Dup2Failed
Duplicating file descriptors failed.
SetuidFailed
Setting user ID failed.
ExecveFailed
Executing the target program failed.
SpjError
Special judge program error.
SystemError
System error
CpuTimeLimitExceeded
Cpu time limit exceeded
RealTimeLimitExceeded
Real time limit exceeded
MemoryLimitExceeded
Memory limit exceeded
RuntimeError
Runtime error
WrongAnswer(String)
Interactor produced wrong answer
Implementations§
Trait Implementations§
impl Eq for ErrorCode
impl StructuralPartialEq for ErrorCode
Auto Trait Implementations§
impl Freeze for ErrorCode
impl RefUnwindSafe for ErrorCode
impl Send for ErrorCode
impl Sync for ErrorCode
impl Unpin for ErrorCode
impl UnsafeUnpin for ErrorCode
impl UnwindSafe for ErrorCode
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