pub struct ExecProxy<'a, 'app, Error, Msg, MtApp, ExecC>{ /* private fields */ }
Available on crate feature
mt
only.Expand description
Intermiediate proxy to set additional information before sending an execute message.
Implementations§
source§impl<'a, 'app, Error, Msg, MtApp, ExecC> ExecProxy<'a, 'app, Error, Msg, MtApp, ExecC>
impl<'a, 'app, Error, Msg, MtApp, ExecC> ExecProxy<'a, 'app, Error, Msg, MtApp, ExecC>
pub fn new(contract_addr: &'a Addr, msg: Msg, app: &'app App<MtApp>) -> Self
sourcepub fn with_funds(self, funds: &'a [Coin]) -> Self
pub fn with_funds(self, funds: &'a [Coin]) -> Self
Sets the funds to be sent with the execute message.
sourcepub fn call(self, sender: &'a Addr) -> Result<AppResponse, Error>
pub fn call(self, sender: &'a Addr) -> Result<AppResponse, Error>
Sends the execute message to the contract.
Auto Trait Implementations§
impl<'a, 'app, Error, Msg, MtApp, ExecC> Freeze for ExecProxy<'a, 'app, Error, Msg, MtApp, ExecC>where
Msg: Freeze,
impl<'a, 'app, Error, Msg, MtApp, ExecC> !RefUnwindSafe for ExecProxy<'a, 'app, Error, Msg, MtApp, ExecC>
impl<'a, 'app, Error, Msg, MtApp, ExecC> !Send for ExecProxy<'a, 'app, Error, Msg, MtApp, ExecC>
impl<'a, 'app, Error, Msg, MtApp, ExecC> !Sync for ExecProxy<'a, 'app, Error, Msg, MtApp, ExecC>
impl<'a, 'app, Error, Msg, MtApp, ExecC> Unpin for ExecProxy<'a, 'app, Error, Msg, MtApp, ExecC>
impl<'a, 'app, Error, Msg, MtApp, ExecC> !UnwindSafe for ExecProxy<'a, 'app, Error, Msg, MtApp, ExecC>
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
source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more