pub struct NeoRuntimeContext;Expand description
Lightweight view of the runtime context.
Implementations§
Source§impl NeoRuntimeContext
impl NeoRuntimeContext
pub fn new() -> NeoRuntimeContext
pub fn trigger(&self) -> Result<NeoInteger, NeoError>
pub fn gas_left(&self) -> Result<NeoInteger, NeoError>
pub fn invocation_counter(&self) -> Result<NeoInteger, NeoError>
pub fn calling_script_hash(&self) -> Result<NeoByteString, NeoError>
pub fn entry_script_hash(&self) -> Result<NeoByteString, NeoError>
pub fn executing_script_hash(&self) -> Result<NeoByteString, NeoError>
Trait Implementations§
Source§impl Default for NeoRuntimeContext
impl Default for NeoRuntimeContext
Source§fn default() -> NeoRuntimeContext
fn default() -> NeoRuntimeContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NeoRuntimeContext
impl RefUnwindSafe for NeoRuntimeContext
impl Send for NeoRuntimeContext
impl Sync for NeoRuntimeContext
impl Unpin for NeoRuntimeContext
impl UnwindSafe for NeoRuntimeContext
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