pub struct CommonUtils {
pub ctx_ptr: i32,
}Expand description
helper method
Fields§
§ctx_ptr: i32Implementations§
Source§impl CommonUtils
impl CommonUtils
Sourcepub fn get_bytes_from_chain(
&self,
ec: &mut EasyCodec,
method_len: &str,
method: &str,
) -> Result<Vec<u8>, result_code>
pub fn get_bytes_from_chain( &self, ec: &mut EasyCodec, method_len: &str, method: &str, ) -> Result<Vec<u8>, result_code>
从链上获取bytes
Sourcepub fn get_i32_from_chain(
&self,
ec: &mut EasyCodec,
method: &str,
) -> Result<i32, result_code>
pub fn get_i32_from_chain( &self, ec: &mut EasyCodec, method: &str, ) -> Result<i32, result_code>
根据参数执行方法,从链上获取int32
Auto Trait Implementations§
impl Freeze for CommonUtils
impl RefUnwindSafe for CommonUtils
impl Send for CommonUtils
impl Sync for CommonUtils
impl Unpin for CommonUtils
impl UnwindSafe for CommonUtils
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