pub enum PythonRunnerHostCall {
Http {
request_id: u64,
invocation_id: String,
request: Value,
},
Secret {
request_id: u64,
invocation_id: String,
name: String,
},
StateGet {
request_id: u64,
invocation_id: String,
key: String,
},
StatePut {
request_id: u64,
invocation_id: String,
key: String,
value: Value,
},
Log {
request_id: u64,
invocation_id: String,
level: String,
message: String,
fields: Value,
},
Metric {
request_id: u64,
invocation_id: String,
name: String,
value: Number,
attributes: Value,
},
Progress {
request_id: u64,
invocation_id: String,
current: u64,
total: Option<u64>,
message: Option<String>,
},
Cancelled {
request_id: u64,
invocation_id: String,
},
}Expand description
Brokered calls a worker may request from the host.
Variants§
Trait Implementations§
Source§impl Clone for PythonRunnerHostCall
impl Clone for PythonRunnerHostCall
Source§fn clone(&self) -> PythonRunnerHostCall
fn clone(&self) -> PythonRunnerHostCall
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PythonRunnerHostCall
impl Debug for PythonRunnerHostCall
Source§impl<'de> Deserialize<'de> for PythonRunnerHostCall
impl<'de> Deserialize<'de> for PythonRunnerHostCall
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PythonRunnerHostCall
impl PartialEq for PythonRunnerHostCall
Source§fn eq(&self, other: &PythonRunnerHostCall) -> bool
fn eq(&self, other: &PythonRunnerHostCall) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PythonRunnerHostCall
impl Serialize for PythonRunnerHostCall
impl StructuralPartialEq for PythonRunnerHostCall
Auto Trait Implementations§
impl Freeze for PythonRunnerHostCall
impl RefUnwindSafe for PythonRunnerHostCall
impl Send for PythonRunnerHostCall
impl Sync for PythonRunnerHostCall
impl Unpin for PythonRunnerHostCall
impl UnsafeUnpin for PythonRunnerHostCall
impl UnwindSafe for PythonRunnerHostCall
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 more