pub enum CScriptError {
Load {
path: PathBuf,
message: String,
},
MissingSymbol {
path: PathBuf,
symbol: &'static str,
message: String,
},
StateContractNotExported {
path: PathBuf,
},
}Variants§
Load
MissingSymbol
StateContractNotExported
CScriptInstance::state_bytes/CScriptInstance::restore_state were called on an
instance whose library exports none of the checkpoint state contract’s three symbols —
check CScriptInstance::supports_state_io first.
Trait Implementations§
Source§impl Clone for CScriptError
impl Clone for CScriptError
Source§impl Debug for CScriptError
impl Debug for CScriptError
Source§impl Display for CScriptError
impl Display for CScriptError
impl Eq for CScriptError
Source§impl Error for CScriptError
impl Error for CScriptError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for CScriptError
impl PartialEq for CScriptError
impl StructuralPartialEq for CScriptError
Auto Trait Implementations§
impl Forget for CScriptError
impl Freeze for CScriptError
impl Move for CScriptError
impl RefUnwindSafe for CScriptError
impl Send for CScriptError
impl Sync for CScriptError
impl Unpin for CScriptError
impl UnsafeUnpin for CScriptError
impl UnwindSafe for CScriptError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more