pub struct Msg<C> {
pub call: C,
pub caller: H160,
pub value: U256,
}
Expand description
Ethereum typed call message, similar to solidity
msg
object.
Fields§
§call: C
§caller: H160
Address of user, which called this contract.
value: U256
Payment amount to contract.
Contract should reject payment, if target call is not payable,
and there is no receiver()
function defined.
Auto Trait Implementations§
impl<C> RefUnwindSafe for Msg<C>where C: RefUnwindSafe,
impl<C> Send for Msg<C>where C: Send,
impl<C> Sync for Msg<C>where C: Sync,
impl<C> Unpin for Msg<C>where C: Unpin,
impl<C> UnwindSafe for Msg<C>where C: UnwindSafe,
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