Skip to main content

encode_input

Function encode_input 

Source
pub fn encode_input<'a, T, S>(input: S) -> InputItems<'a>
where T: Serialize + 'static, S: Stream<Item = T> + MaybeSend + 'a,
Expand description

A stream of items as InputItems: what a generated client method hands Transport::call_with_input. Bytes items are [InputItem::Binary] (with a WebSocket backend); anything else is JSON.