Function async_i3ipc::decode_response[][src]

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
Expand description

Convenience function that decodes a single response and passes the type and undecoded buffer to a closure