[−][src]Function async_i3ipc::decode_response
pub async fn decode_response<F, T, S>(stream: &mut S, f: F) -> Result<T> where
F: Fn(u32, Vec<u8>) -> T,
S: Read + Unpin,
Convenience function that decodes a single response and passes the type and undecoded buffer to a closure