pub fn update_to_js<'a, C: Context<'a>>(
    cx: &mut C,
    update: &Update
) -> NeonResult<Handle<'a, JsObject>>
Expand description

Function to convert rust Update to JsObject

Arguments

  • cx - Neon FunctionContext
  • update - rust Update

Returns

  • JsResult<JsObject> - Neon JsObject

Errors

  • Throws a Neon error if the update cannot be converted