pub struct NeoContractRuntime;Expand description
Minimal representation of contract management utilities used in tests.
Implementations§
Source§impl NeoContractRuntime
impl NeoContractRuntime
pub fn create( script: &NeoByteString, _manifest: &NeoContractManifest, ) -> Result<NeoByteString, NeoError>
pub fn update( _script_hash: &NeoByteString, _script: &NeoByteString, _manifest: &NeoContractManifest, ) -> Result<(), NeoError>
pub fn destroy(_script_hash: &NeoByteString) -> Result<(), NeoError>
pub fn call( _script_hash: &NeoByteString, _method: &NeoString, _args: &NeoArray<NeoValue>, ) -> Result<NeoValue, NeoError>
Auto Trait Implementations§
impl Freeze for NeoContractRuntime
impl RefUnwindSafe for NeoContractRuntime
impl Send for NeoContractRuntime
impl Sync for NeoContractRuntime
impl Unpin for NeoContractRuntime
impl UnwindSafe for NeoContractRuntime
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