Rust Context-switching Resources