2026-05-16

Rust Bangalore Meetup 16 May 2026

by Aditya Hegde

notes tech
// compio (ownership mode)
// kernel must have ownership to the buffer that it is writing to
let buf = [0; 4096];
// buf is not borrowed
let (res, buf) = file.read_at(buf, 0).await;
//        ^^^ buffer returned with data

// tokio (borrowing) model
file.read(&mut buf).await?; // here buf is borrowed