Skip to navigation

Struct Runtime Context

View as Markdown

Generated from cargo doc --no-deps -p nemo-fabric-core.

pub struct RuntimeContext {
    pub runtime_id: String,
    pub invocation_id: String,
    pub request_id: String,
    pub environment: EnvironmentHandle,
    pub artifacts: ArtifactManifest,
    pub telemetry: Option<RuntimeTelemetryContext>,
    pub deadline_millis: Option<u64>,
}

Context generated for one invocation of a started runtime.

Fields

runtime_id: String

Runtime handle id.

invocation_id: String

Invocation handle id.

request_id: String

Request id.

environment: EnvironmentHandle

Prepared execution environment.

artifacts: ArtifactManifest

Artifact manifest visible to the adapter at invocation start.

telemetry: Option<RuntimeTelemetryContext>

Runtime telemetry context generated for this invocation.

deadline_millis: Option<u64>

Unix time in milliseconds by which the adapter should return its result. Present on every invocation, shortly before Fabric’s own invocation timeout.

Trait Implementations

impl Clone for RuntimeContext

impl Clone for RuntimeContext

clone

fn clone(&self) -> RuntimeContext

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for RuntimeContext

impl Debug for RuntimeContext

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl<'de> Deserialize<'de> for RuntimeContext

impl<'de> Deserialize<'de> for RuntimeContext

deserialize

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,

impl JsonSchema for RuntimeContext

impl JsonSchema for RuntimeContext

schema_name

fn schema_name() -> Cow<'static, str>

schema_id

fn schema_id() -> Cow<'static, str>

json_schema

fn json_schema(generator: &mut SchemaGenerator) -> Schema

inline_schema

fn inline_schema() -> bool

impl PartialEq for RuntimeContext

impl PartialEq for RuntimeContext

eq

fn eq(&self, other: &RuntimeContext) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl Serialize for RuntimeContext

impl Serialize for RuntimeContext

serialize

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
    __S: Serializer,

impl StructuralPartialEq for RuntimeContext

impl StructuralPartialEq for RuntimeContext