pub fn into_dispatch_result<R, E>(self, result: Result<R, E>) -> DispatchResultWithPostInfo where
		E: Into<DispatchError>,
	{
		let post_info = PostDispatchInfo {
			actual_weight: Some(self.gas_spent()),
		};

		result
			.map(|_| post_info)
			.map_err(|e| DispatchErrorWithPostInfo { post_info, error: e.into() })
	}
/// Turn this GasMeter into a DispatchResult that contains the actually used gas.
Turn this GasMeter into a DispatchResult that contains the actually used gas.
Turn this GasMeter into a DispatchResult that contains the actually used gas .
pub fn into_dispatch_result<R, E>(self, result: Result<R, E>) -> DispatchResultWithPostInfo where
		E: Into<DispatchError>,
	{
		let post_info = PostDispatchInfo {
			actual_weight: Some(self.gas_spent()),
		};
		result
			.map(|_| post_info)
			.map_err(|e| DispatchErrorWithPostInfo { post_info, error: e.into() })
	}
pub fn into_dispatch_result < R , E > ( self , result : Result < R , E > ) -> DispatchResultWithPostInfo where E : Into < DispatchError > , { let post_info = PostDispatchInfo { actual_weight : Some ( self . gas_spent ( ) ) , } ; result . map ( | _ | post_info ) . map_err ( | e | DispatchErrorWithPostInfo { post_info , error : e . into ( ) } ) }
Turn this GasMeter into a DispatchResult that contains the actually used gas.
Turn this GasMeter into a DispatchResult that contains the actually used gas .
self
result
Result<R, E>
self
result
Result<R, E>