[−]Enum near_vm_logic::HostError
Variants
String encoding is bad UTF-16 sequence
String encoding is bad UTF-8 sequence
Exceeded the prepaid gas
Exceeded the maximum amount of gas allowed to burn per contract
Exceeded the account balance
Tried to call an empty method name
Smart contract panicked
Fields of GuestPanic
panic_msg: String
IntegerOverflow happened during a contract execution
promise_idx
does not correspond to existing promises
Fields of InvalidPromiseIndex
promise_idx: u64
Actions can only be appended to non-joint promise.
Returning joint promise is currently prohibited
Accessed invalid promise result index
Fields of InvalidPromiseResultIndex
result_idx: u64
Accessed invalid register id
Fields of InvalidRegisterId
register_id: u64
Iterator iterator_index
was invalidated after its creation by performing a mutable operation on trie
Fields of IteratorWasInvalidated
iterator_index: u64
Accessed memory outside the bounds
VM Logic returned an invalid receipt index
Fields of InvalidReceiptIndex
receipt_index: u64
Iterator index iterator_index
does not exist
Fields of InvalidIteratorIndex
iterator_index: u64
VM Logic returned an invalid account id
VM Logic returned an invalid method name
VM Logic provided an invalid public key
method_name
is not allowed in view calls
Fields of ProhibitedInView
method_name: String
The total number of logs will exceed the limit.
Fields of NumberOfLogsExceeded
limit: u64
The storage key length exceeded the limit.
The storage value length exceeded the limit.
The total log length exceeded the limit.
The maximum number of promises within a FunctionCall exceeded the limit.
The maximum number of input data dependencies exceeded the limit.
The returned value length exceeded the limit.
The contract size for DeployContract action exceeded the limit.
The host function was deprecated.
Fields of Deprecated
method_name: String
Trait Implementations
impl BorshDeserialize for HostError where
String: BorshDeserialize,
u64: BorshDeserialize,
[src]
String: BorshDeserialize,
u64: BorshDeserialize,
fn deserialize(buf: &mut &[u8]) -> Result<HostError, Error>
[src]
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn is_u8() -> bool
impl BorshSerialize for HostError where
String: BorshSerialize,
u64: BorshSerialize,
[src]
String: BorshSerialize,
u64: BorshSerialize,
fn serialize<W>(&self, writer: &mut W) -> Result<(), Error> where
W: Write,
[src]
W: Write,
fn try_to_vec(&self) -> Result<Vec<u8>, Error>
fn is_u8() -> bool
impl Clone for HostError
[src]
impl Debug for HostError
[src]
impl<'de> Deserialize<'de> for HostError
[src]
fn deserialize<__D>(
__deserializer: __D
) -> Result<HostError, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
__deserializer: __D
) -> Result<HostError, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Display for HostError
[src]
impl Eq for HostError
[src]
impl From<HostError> for VMLogicError
[src]
fn from(err: HostError) -> VMLogicError
[src]
impl PartialEq<HostError> for HostError
[src]
impl Serialize for HostError
[src]
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralEq for HostError
[src]
impl StructuralPartialEq for HostError
[src]
Auto Trait Implementations
impl RefUnwindSafe for HostError
impl Send for HostError
impl Sync for HostError
impl Unpin for HostError
impl UnwindSafe for HostError
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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.
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>,