pub enum NitroCliErrorEnum {
Show 61 variants
UnspecifiedError = 0,
MissingArgument = 1,
ConflictingArgument = 2,
InvalidArgument = 3,
SocketPairCreationFailure = 4,
ProcessSpawnFailure = 5,
DaemonizeProcessFailure = 6,
ReadFromDiskFailure = 7,
UnusableConnectionError = 8,
SocketCloseError = 9,
SocketConnectTimeoutError = 10,
SocketError = 11,
EpollError = 12,
InotifyError = 13,
InvalidCommand = 14,
LockAcquireFailure = 15,
ThreadJoinFailure = 16,
SerdeError = 17,
FilePermissionsError = 18,
FileOperationFailure = 19,
InvalidCpuConfiguration = 20,
NoSuchCpuAvailableInPool = 21,
InsufficientCpus = 22,
MalformedCpuId = 23,
CpuError = 24,
NoSuchHugepageFlag = 25,
InsufficientMemoryRequested = 26,
InsufficientMemoryAvailable = 27,
InvalidEnclaveFd = 28,
IoctlFailure = 29,
IoctlImageLoadInfoFailure = 30,
IoctlSetMemoryRegionFailure = 31,
IoctlAddVcpuFailure = 32,
IoctlEnclaveStartFailure = 33,
MemoryOverflow = 34,
EifParsingError = 35,
EnclaveBootFailure = 36,
EnclaveEventWaitError = 37,
EnclaveProcessCommandNotExecuted = 38,
EnclaveProcessConnectionFailure = 39,
SocketPathNotFound = 40,
EnclaveProcessSendReplyFailure = 41,
EnclaveMmapError = 42,
EnclaveMunmapError = 43,
EnclaveConsoleConnectionFailure = 44,
EnclaveConsoleReadError = 45,
EnclaveConsoleWriteOutputError = 46,
IntegerParsingError = 47,
EifBuildingError = 48,
DockerImageBuildError = 49,
DockerImagePullError = 50,
ArtifactsPathNotSet = 51,
BlobsPathNotSet = 52,
ClockSkewError = 53,
SignalMaskingError = 54,
SignalUnmaskingError = 55,
LoggerError = 56,
HasherError = 57,
EnclaveNamingError = 58,
EIFSignatureCheckerError = 59,
EIFSigningError = 60,
}Expand description
All possible errors which may occur.
Variants§
UnspecifiedError = 0
Unspecified error (should avoid using it thoughout the code).
MissingArgument = 1
Error for handling missing arguments.
ConflictingArgument = 2
Error for handling conflicting arguments.
InvalidArgument = 3
Invalid type argument.
SocketPairCreationFailure = 4
Failed to create socket pair.
ProcessSpawnFailure = 5
Failed to spawn a child process.
DaemonizeProcessFailure = 6
Failed to daemonize current process.
ReadFromDiskFailure = 7
Failed to read requested content from disk.
UnusableConnectionError = 8
Unusable connection error.
SocketCloseError = 9
Socket close error.
SocketConnectTimeoutError = 10
Socket connect timeout error.
SocketError = 11
General error for handling socket-related errors.
EpollError = 12
General error for handling epoll-related errors.
InotifyError = 13
General error for handling inotify-related errors.
InvalidCommand = 14
Invalid command format.
LockAcquireFailure = 15
Lock acquire failure.
ThreadJoinFailure = 16
Thread join failure.
SerdeError = 17
General error for handling serde-related errors.
FilePermissionsError = 18
File permissions error.
FileOperationFailure = 19
File operation failure.
InvalidCpuConfiguration = 20
Invalid CPU list configuration.
NoSuchCpuAvailableInPool = 21
Requested CPU not available in the pool.
InsufficientCpus = 22
Not enough CPUs available in the pool.
MalformedCpuId = 23
Malformed CPU ID error.
CpuError = 24
General error to catch all other CPU-related errors.
NoSuchHugepageFlag = 25
No such hugepage map flag.
InsufficientMemoryRequested = 26
Insufficient memory requested.
InsufficientMemoryAvailable = 27
Insufficient memory available.
InvalidEnclaveFd = 28
Invalid enclave file descriptor.
IoctlFailure = 29
General ioctl failure.
IoctlImageLoadInfoFailure = 30
Image load info ioctl failure.
IoctlSetMemoryRegionFailure = 31
Enclave set memory region ioctl failure.
IoctlAddVcpuFailure = 32
VCPU add ioctl failure.
IoctlEnclaveStartFailure = 33
Enclave start ioctl failure.
MemoryOverflow = 34
Memory overflow.
EifParsingError = 35
General EIF parsing related error.
EnclaveBootFailure = 36
Error specific to enclave booting issues.
EnclaveEventWaitError = 37
Enclave event wait error.
EnclaveProcessCommandNotExecuted = 38
Enclave process command was not executed.
EnclaveProcessConnectionFailure = 39
Could not connect to an enclave process.
SocketPathNotFound = 40
Socket path not found.
EnclaveProcessSendReplyFailure = 41
Enclave process failed to send back reply.
EnclaveMmapError = 42
Error when trying to allocate enclave memory regions.
EnclaveMunmapError = 43
Error when trying to release enclave memory regions.
EnclaveConsoleConnectionFailure = 44
Enclave connection to console failed.
EnclaveConsoleReadError = 45
Error when reading from the console.
EnclaveConsoleWriteOutputError = 46
Error when writing console output to stream.
IntegerParsingError = 47
Integer parsing error.
EifBuildingError = 48
Could not build EIF file.
DockerImageBuildError = 49
Could not build Docker image.
DockerImagePullError = 50
Could not pull Docker image.
ArtifactsPathNotSet = 51
Artifacts path environment variable not set.
BlobsPathNotSet = 52
Blobs path environment variable not set.
ClockSkewError = 53
Clock skew error.
SignalMaskingError = 54
Signal masking error.
SignalUnmaskingError = 55
Signal unmasking error.
LoggerError = 56
General error for handling logger-related errors.
HasherError = 57
Hasher operation error
EnclaveNamingError = 58
Enclave naming error
EIFSignatureCheckerError = 59
Signature checker error
EIFSigningError = 60
Signing error
Trait Implementations§
Source§impl Clone for NitroCliErrorEnum
impl Clone for NitroCliErrorEnum
impl Copy for NitroCliErrorEnum
Source§impl Debug for NitroCliErrorEnum
impl Debug for NitroCliErrorEnum
Source§impl Default for NitroCliErrorEnum
impl Default for NitroCliErrorEnum
impl Eq for NitroCliErrorEnum
Source§impl Hash for NitroCliErrorEnum
impl Hash for NitroCliErrorEnum
Source§impl PartialEq for NitroCliErrorEnum
impl PartialEq for NitroCliErrorEnum
impl StructuralPartialEq for NitroCliErrorEnum
Auto Trait Implementations§
impl Freeze for NitroCliErrorEnum
impl RefUnwindSafe for NitroCliErrorEnum
impl Send for NitroCliErrorEnum
impl Sync for NitroCliErrorEnum
impl Unpin for NitroCliErrorEnum
impl UnsafeUnpin for NitroCliErrorEnum
impl UnwindSafe for NitroCliErrorEnum
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.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 more