Enum concordium_std::test_infrastructure::ContractStateError [−][src]
An error that is raised when operating with Seek
, Write
, or Read
trait
methods of the ContractStateTest
type.
Variants
The computation of the new offset would result in an overflow.
An error occurred when writing to the contract state.
The new offset would be out of bounds of the state.
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]
fn from(_: TryFromIntError) -> Self
[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 size(&self) -> u32
[src]
fn truncate(&mut self, new_size: u32)
[src]
fn reserve(&mut self, len: u32) -> bool
[src]
impl PartialEq<ContractStateError> for ContractStateError
[src]
fn eq(&self, other: &ContractStateError) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for ContractStateError
[src]
impl StructuralPartialEq for ContractStateError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ContractStateError
impl Send for ContractStateError
impl Sync for ContractStateError
impl Unpin for ContractStateError
impl UnwindSafe for ContractStateError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,