Enum concordium_std::test_infrastructure::ContractStateError[][src]

pub enum ContractStateError {
    Overflow,
    Write,
    Offset,
    Default,
}
Expand description

An error that is raised when operating with Seek, Write, or Read trait methods of the ContractStateTest type.

Variants

Overflow

The computation of the new offset would result in an overflow.

Write

An error occurred when writing to the contract state.

Offset

The new offset would be out of bounds of the state.

Default

Some other error occurred.

Trait Implementations

Formats the value using the given formatter. Read more

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

Performs the conversion.

Open the contract state. Only one instance can be opened at the same time. Read more

Get the current size of contract state.

Truncate the state to the given size. If the given size is more than the current state size this operation does nothing. The new position is at most at the end of the stream. Read more

Make sure that the memory size is at least that many bytes in size. Returns true iff this was successful. The new bytes are initialized as 0. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.