Skip to main content

NitroCliErrorEnum

Enum NitroCliErrorEnum 

Source
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

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for NitroCliErrorEnum

Source§

impl Debug for NitroCliErrorEnum

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for NitroCliErrorEnum

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Eq for NitroCliErrorEnum

Source§

impl Hash for NitroCliErrorEnum

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for NitroCliErrorEnum

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for NitroCliErrorEnum

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> AsOut<T> for T
where T: Copy,

Source§

fn as_out(&mut self) -> Out<'_, T>

Returns an out reference to self.
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

Converts 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
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more