Struct andromeda_std::common::context::ExecuteContext
source · pub struct ExecuteContext<'a> {
pub deps: DepsMut<'a>,
pub info: MessageInfo,
pub env: Env,
pub amp_ctx: Option<AMPPkt>,
}Fields§
§deps: DepsMut<'a>§info: MessageInfo§env: Env§amp_ctx: Option<AMPPkt>Implementations§
source§impl<'a> ExecuteContext<'a>
impl<'a> ExecuteContext<'a>
pub fn new(deps: DepsMut<'_>, info: MessageInfo, env: Env) -> ExecuteContext<'_>
pub fn with_ctx(self, amp_ctx: AMPPkt) -> Self
pub fn contains_sender(&self, addr: &str) -> bool
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ExecuteContext<'a>
impl<'a> !Send for ExecuteContext<'a>
impl<'a> !Sync for ExecuteContext<'a>
impl<'a> Unpin for ExecuteContext<'a>
impl<'a> !UnwindSafe for ExecuteContext<'a>
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moresource§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