pub struct Executor<'a> { /* private fields */ }Expand description
The one execution choke point for plans, policy, signing, and submission.
Implementations§
Source§impl<'a> Executor<'a>
impl<'a> Executor<'a>
pub fn new(client: &'a Client) -> Self
pub fn with_policy(client: &'a Client, policy: Policy) -> Self
pub fn plan( &self, intent: &IntentCall, wallet: &Wallet, ) -> Result<Plan, CoreError>
pub fn plan_with_policy( &self, intent: &IntentCall, wallet: &Wallet, policy: &Policy, ) -> Result<Plan, CoreError>
pub fn plan_with_proxy( &self, intent: &IntentCall, wallet: &Wallet, policy: Option<&Policy>, proxy_for: Option<&str>, proxy_type: Option<&str>, ) -> Result<Plan, CoreError>
pub fn execute( &self, intent: &IntentCall, wallet: &Wallet, ) -> Result<TxOutcome, CoreError>
pub fn execute_with( &self, intent: &IntentCall, wallet: &Wallet, policy: Option<&Policy>, proxy_for: Option<&str>, proxy_type: Option<&str>, wait_for_finalization: bool, ) -> Result<TxOutcome, CoreError>
pub fn submit_shielded( &self, intent: &IntentCall, wallet: &Wallet, policy: Option<&Policy>, ) -> Result<TxOutcome, CoreError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Executor<'a>
impl<'a> !UnwindSafe for Executor<'a>
impl<'a> Forget for Executor<'a>
impl<'a> Freeze for Executor<'a>
impl<'a> Move for Executor<'a>
impl<'a> Send for Executor<'a>
impl<'a> Sync for Executor<'a>
impl<'a> Unpin for Executor<'a>
impl<'a> UnsafeUnpin for Executor<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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 moreimpl<T> JsonSchemaMaybe for T
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
impl<S, T> UncheckedInto<T> for Swhere
T: UncheckedFrom<S>,
Source§fn unchecked_into(self) -> T
fn unchecked_into(self) -> T
The counterpart to
unchecked_from.