pub struct Call<const MUTATING: bool = false, const HAS_VALUE: bool = false> { /* private fields */ }Expand description
Enables configurable calls to other contracts.
Implementations§
Source§impl<const MUTATING: bool, const HAS_VALUE: bool> Call<MUTATING, HAS_VALUE>
impl<const MUTATING: bool, const HAS_VALUE: bool> Call<MUTATING, HAS_VALUE>
Source§impl Call<true, false>
impl Call<true, false>
pub fn new_mutating(_storage: &mut impl TopLevelStorage) -> Self
Source§impl Call<true, true>
impl Call<true, true>
pub fn new_payable(_storage: &mut impl TopLevelStorage, value: U256) -> Self
Trait Implementations§
Source§impl<const HAS_VALUE: bool> MutatingCallContext for Call<true, HAS_VALUE>
impl<const HAS_VALUE: bool> MutatingCallContext for Call<true, HAS_VALUE>
impl NonPayableCallContext for Call<true, false>
impl StaticCallContext for Call<false, false>
Auto Trait Implementations§
impl<const MUTATING: bool, const HAS_VALUE: bool> Freeze for Call<MUTATING, HAS_VALUE>
impl<const MUTATING: bool, const HAS_VALUE: bool> RefUnwindSafe for Call<MUTATING, HAS_VALUE>
impl<const MUTATING: bool, const HAS_VALUE: bool> Send for Call<MUTATING, HAS_VALUE>
impl<const MUTATING: bool, const HAS_VALUE: bool> Sync for Call<MUTATING, HAS_VALUE>
impl<const MUTATING: bool, const HAS_VALUE: bool> Unpin for Call<MUTATING, HAS_VALUE>
impl<const MUTATING: bool, const HAS_VALUE: bool> UnwindSafe for Call<MUTATING, HAS_VALUE>
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