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

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

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

impl Debug for ContractStateError[src]

impl Default for ContractStateError[src]

impl Eq for ContractStateError[src]

impl From<TryFromIntError> for ContractStateError[src]

impl<T: AsMut<Vec<u8>> + AsMut<[u8]> + AsRef<[u8]>> HasContractState<ContractStateError> for ContractStateTest<T>[src]

type ContractStateData = T

impl PartialEq<ContractStateError> for ContractStateError[src]

impl StructuralEq for ContractStateError[src]

impl StructuralPartialEq for ContractStateError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.