record_array

Macro record_array 

Source
macro_rules! record_array {
    ($recorder:expr; [$($item:expr),* $(,)?]) => { ... };
}
Expand description

Macro for array construction with natural syntax

ยงExample

use capnweb_client::{record_array, Recorder};
use capnweb_core::CapId;
let recorder = Recorder::new();
let cap = recorder.capture("api", CapId::new(1));
let item1 = cap.call("getValue", vec![]);
let item2 = cap.call("getValue", vec![]);
let arr = record_array!(recorder; [item1, item2]);