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
Performs the conversion.
impl<T: AsMut<Vec<u8>> + AsMut<[u8]> + AsRef<[u8]>> HasContractState<ContractStateError> for ContractStateTest<T>
impl<T: AsMut<Vec<u8>> + AsMut<[u8]> + AsRef<[u8]>> HasContractState<ContractStateError> for ContractStateTest<T>
type ContractStateData = T
Open the contract state. Only one instance can be opened at the same time. Read more
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