fn read() -> std::io::Result<()> {
let vec: Vec<u8> = vec![2, 5, 8, 10, 15, 16];
if let Some((poz_1, (poz_2, poz_3))) = vec.binary_search(&8).ok()
.zip(vec.binary_search(&15).ok().zip(vec.binary_search(&12).ok())) {
return Ok(());
} else {
return Err(std::io::Error::new(std::io::ErrorKind::Other, "understading message"));
}
}