pub struct ExecutionContext<'a> {
pub id: String,
pub actor_id: String,
pub log: ExecutionLog,
pub storage: ObjectBody,
pub references: HashMap<String, String>,
pub bubbling: bool,
pub module: Arc<CompiledModule>,
pub global: Arc<Global>,
pub resources: &'a mut ActorResources,
pub environment: Arc<Environment>,
pub mode: ExecutionMode,
pub loop_counts: Vec<(String, u64)>,
}Fields§
§id: String§actor_id: String§log: ExecutionLog§storage: ObjectBody§references: HashMap<String, String>§bubbling: boolException bubbling If set to true, the context is currently bubbling an exception
module: Arc<CompiledModule>§global: Arc<Global>§resources: &'a mut ActorResources§environment: Arc<Environment>§mode: ExecutionMode§loop_counts: Vec<(String, u64)>Implementations§
Source§impl<'a> ExecutionContext<'a>
impl<'a> ExecutionContext<'a>
pub async fn add_step_started(&mut self, id: &str)
pub async fn add_step_finished(&mut self, id: &str)
pub async fn add_enter_function( &mut self, function_id: String, initial_storage: ObjectBody, )
pub async fn add_leave_function(&mut self, function_id: String)
pub async fn add_error_thrown(&mut self, id: &str, error: ExecutionError)
pub async fn start_report(&mut self)
pub async fn end_report(&mut self, final_status: ExecutionStatus)
pub async fn add_to_storage( &mut self, id: &str, selector: Vec<SelectorPart>, value: StorageValue, ) -> Result<(), ExecutionError>
pub async fn note_resource_provisioned(&mut self, id: u64, resource: &str)
pub async fn note_resource_consumed(&mut self, id: u64, resource: &str)
pub async fn note_resource_used(&mut self, id: u64, resource: &str)
pub async fn note_named_resource_provisioned( &mut self, id: u64, resource: &str, name: String, )
pub async fn note_named_resource_consumed( &mut self, id: u64, resource: &str, name: String, )
pub async fn note_named_resource_used( &mut self, id: u64, resource: &str, name: String, )
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for ExecutionContext<'a>
impl<'a> !RefUnwindSafe for ExecutionContext<'a>
impl<'a> Send for ExecutionContext<'a>
impl<'a> !Sync for ExecutionContext<'a>
impl<'a> Unpin for ExecutionContext<'a>
impl<'a> !UnwindSafe for ExecutionContext<'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
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
Source§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
Query the “status” flags for the
self file descriptor.Source§fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>where
T: AsFilelike,
Source§fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>where
T: AsFilelike,
Set the “status” flags for the
self file descriptor. Read moreSource§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request