Enum ketos::restrict::RestrictError [] [src]

pub enum RestrictError {
    ExecutionTimeExceeded,
    CallStackExceeded,
    ValueStackExceeded,
    NamespaceSizeExceeded,
    MemoryLimitExceeded,
    IntegerLimitExceeded,
    MaxSyntaxNestingExceeded,
}

Represents an error caused by breach of runtime execution restrictions

Variants

ExecutionTimeExceeded

Execution time exceeded limit

CallStackExceeded

Call stack exceeded limit

ValueStackExceeded

Value stack exceeded limit

NamespaceSizeExceeded

Namespace size exceeded limit

MemoryLimitExceeded

Memory consumption exceeded limit

IntegerLimitExceeded

Integer bit limit exceeded

MaxSyntaxNestingExceeded

Nested syntax exceeded limit

Methods

impl RestrictError
[src]

fn description(&self) -> &'static str

Returns a string describing the error that occurred.

Trait Implementations

impl PartialEq for RestrictError
[src]

fn eq(&self, __arg_0: &RestrictError) -> bool

This method tests for self and other values to be equal, and is used by ==. Read more

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

This method tests for !=.

impl Eq for RestrictError
[src]

impl Debug for RestrictError
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Clone for RestrictError
[src]

fn clone(&self) -> RestrictError

Returns a copy of the value. Read more

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

Performs copy-assignment from source. Read more

impl Copy for RestrictError
[src]

impl Display for RestrictError
[src]

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

Formats the value using the given formatter.