Constant fdk::STATELESS [] [src]

pub const STATELESS: fn(_: &RuntimeContext) -> Result<(), FunctionError> = stateless

This constant can be used as the initializer of a Function to indicate that the function does not need or handle state.

For example:

let exit_code = fdk::Function::new(fdk::STATELESS)
    .run(|_, i: String| {
        Ok(i)
    });