O'Reilly logo
  • Ivan Zderadicka thinks this is interesting:

let mut buf = [0u8; 1500];

From

Cover of Network Programming with Rust

Note

As this array is Copy we will be copying 1500 bytes to the closure instead move? Vec might be better?