Enum ckb_script::ScriptError [−][src]
pub enum ScriptError { InvalidCodeHash, ExceededMaximumCycles(Cycle), MultipleMatches, ValidationFailure(i8), EncounteredKnownBugs(String, usize), VMInternalError(String), }
Expand description
Script execution error.
Variants
The field code_hash in script is invalid
ExceededMaximumCycles(Cycle)
The script consumes too much cycles
script.type_hash
hits multiple cells with different data
ValidationFailure(i8)
Non-zero exit code returns by script
Known bugs are detected in transaction script outputs
VMInternalError(String)
Known bugs are detected in transaction script outputs
Implementations
impl ScriptError
[src]
impl ScriptError
[src]pub fn input_lock_script(self, index: usize) -> TransactionScriptError
[src]
pub fn input_lock_script(self, index: usize) -> TransactionScriptError
[src]Creates a script error originated from the lock script of the input cell at the specific index.
pub fn input_type_script(self, index: usize) -> TransactionScriptError
[src]
pub fn input_type_script(self, index: usize) -> TransactionScriptError
[src]Creates a script error originated from the type script of the input cell at the specific index.
pub fn output_type_script(self, index: usize) -> TransactionScriptError
[src]
pub fn output_type_script(self, index: usize) -> TransactionScriptError
[src]Creates a script error originated from the type script of the output cell at the specific index.
Trait Implementations
impl Clone for ScriptError
[src]
impl Clone for ScriptError
[src]fn clone(&self) -> ScriptError
[src]
fn clone(&self) -> ScriptError
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for ScriptError
[src]
impl Debug for ScriptError
[src]impl Display for ScriptError
[src]
impl Display for ScriptError
[src]impl Error for ScriptError
[src]
impl Error for ScriptError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]use the Display impl or to_string()
impl PartialEq<ScriptError> for ScriptError
[src]
impl PartialEq<ScriptError> for ScriptError
[src]fn eq(&self, other: &ScriptError) -> bool
[src]
fn eq(&self, other: &ScriptError) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &ScriptError) -> bool
[src]
fn ne(&self, other: &ScriptError) -> bool
[src]This method tests for !=
.
impl Eq for ScriptError
[src]
impl StructuralEq for ScriptError
[src]
impl StructuralPartialEq for ScriptError
[src]
Auto Trait Implementations
impl RefUnwindSafe for ScriptError
impl Send for ScriptError
impl Sync for ScriptError
impl Unpin for ScriptError
impl UnwindSafe for ScriptError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,