pub struct Runtime {
pub inner: Rc<RefCell<RuntimeInner>>,
}Expand description
Mock of contract execution runtime
Fields§
§inner: Rc<RefCell<RuntimeInner>>Implementations§
Source§impl Runtime
impl Runtime
pub fn revert(&self, _msg: &str) -> !
pub fn input(&self) -> Vec<u8> ⓘ
pub fn input_length(&self) -> u32
pub fn add_list_key(&self, list_name: &[u8], index: u32) -> Option<i64>
pub fn get_list_key(&self, list_name: &[u8], index: u32) -> Option<i64>
pub fn remove_list_key(&self, list_name: &[u8], index: u32) -> Option<i64>
pub fn write_list_keys_back( &mut self, old_list_name: &[u8], list_name: &[u8], size: u32, )
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Runtime
impl !RefUnwindSafe for Runtime
impl !Send for Runtime
impl !Sync for Runtime
impl Unpin for Runtime
impl !UnwindSafe for Runtime
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