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
Expand description
The computation of the new offset would result in an overflow.
Expand description
An error occurred when writing to the contract state.
Expand description
The new offset would be out of bounds of the state.
Expand description
Some other error occurred.
Trait Implementations
impl Debug for ContractStateError
[src]
impl Debug for ContractStateError
[src]impl Default for ContractStateError
[src]
impl Default for ContractStateError
[src]impl From<TryFromIntError> for ContractStateError
[src]
impl From<TryFromIntError> for ContractStateError
[src]fn from(_: TryFromIntError) -> Self
[src]
fn from(_: TryFromIntError) -> Self
[src]Performs the conversion.
impl<T: AsMut<Vec<u8>> + AsMut<[u8]> + AsRef<[u8]>> HasContractState<ContractStateError> for ContractStateTest<T>
[src]
impl<T: AsMut<Vec<u8>> + AsMut<[u8]> + AsRef<[u8]>> HasContractState<ContractStateError> for ContractStateTest<T>
[src]type ContractStateData = T
fn open(data: Self::ContractStateData) -> Self
[src]
fn open(data: Self::ContractStateData) -> Self
[src]Open the contract state. Only one instance can be opened at the same time. Read more