Struct rain_task::Context [−][src]
pub struct Context { pub spec: TaskSpec, // some fields omitted }
State of the processed Task instance and its specification.
Fields
spec: TaskSpec
The call message the Context was created for.
Methods
impl Context
[src]
impl Context
pub fn set_user_info(
&mut self,
key: impl Into<String>,
val: UserValue
)
[src]
pub fn set_user_info(
&mut self,
key: impl Into<String>,
val: UserValue
)
Sets the info.user[key]
to value.
Any old value is overwriten.
pub fn fail(&mut self, msg: String)
[src]
pub fn fail(&mut self, msg: String)
Set the state of the task to failed with given message