crosvm/sys_util/src
David Tolnay 1dda82e8b2 sys_util: Combine GuestMemory::with_regions and with_regions_mut
Every implementation of Fn also implements FnMut, so if some callback
can be passed to GuestMemory::with_regions then it could also have been
passed to GuestMemory::with_regions_mut.

This CL removes GuestMemory::with_regions and renames with_regions_mut
to with_regions.

TEST=cargo check

Change-Id: Ia4f168ff4eb4d45a5ee8f9413821ae244fb72ee1
Reviewed-on: https://chromium-review.googlesource.com/1378688
Commit-Ready: ChromeOS CL Exonerator Bot <chromiumos-cl-exonerator@appspot.gserviceaccount.com>
Tested-by: David Tolnay <dtolnay@chromium.org>
Reviewed-by: Stephen Barber <smbarber@chromium.org>
2018-12-18 00:42:52 -08:00
..
errno.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
eventfd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
file_flags.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
file_sync.rs sys_util: add trait to fsync File and QcowFile 2018-10-26 17:19:10 -07:00
fork.rs toolchain: Update to Rust 1.31.0 2018-12-13 19:28:04 -08:00
guest_address.rs crosvm: change GuestAddress to always be a u64 2018-02-01 18:08:55 -08:00
guest_memory.rs sys_util: Combine GuestMemory::with_regions and with_regions_mut 2018-12-18 00:42:52 -08:00
handle_eintr.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
ioctl.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
lib.rs sys_util: Add ability to set real time thread priority 2018-12-09 00:48:21 -08:00
mmap.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
passwd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
poll.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
priority.rs sys_util: Add ability to set real time thread priority 2018-12-09 00:48:21 -08:00
seek_hole.rs sys_util: add SeekHole trait 2018-10-18 19:01:06 -07:00
shm.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
signal.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
signalfd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
sock_ctrl_msg.rs toolchain: Update to Rust 1.31.0 2018-12-13 19:28:04 -08:00
struct_util.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
syslog.rs sync: Mutex type with methods that panic instead of return error 2018-12-05 01:13:41 -08:00
tempdir.rs lint: Resolve the easier clippy lints 2018-12-03 20:32:03 -08:00
terminal.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
timerfd.rs cargo fmt all source code 2018-10-09 21:14:05 -07:00
write_zeroes.rs devices: virtio: block: ignore Discard failures 2018-10-19 12:19:41 -07:00