-
yiwu-arbug authored
fix tikv/tikv#6973 As mentioned in the linked issue, the aim is to implement `!Send` for the `PerfContext` struct. Although the issue is related to the `tikv/tikv` repo, the concerned `PerfContext` is taken from this repo. Due to the rule that "foreign traits can't be implemented on foreign types", it isn't possible to directly implement the `!Send` trait on the `PerfContext` struct. So, either I had to enclose the `PerfContext` within another type and implement `!Send` for the new type (along with implementing all the functions present for `PerfContext`), or directly add the `!Send` implementation, where the struct is defined, i.e, in this repo. I've taken the second path. but, there is a problem. `impl !Send` is currently only supported in nightly and not on stable channel. So, it's necessary to build this crate with nightly toolchain, if this patch is accepted. Signed-off-by:
Govardhan G D <govardhangdg@gmail.com>
72d4bef6
Name |
Last commit
|
Last update |
---|---|---|
benches | ||
librocksdb_sys | ||
scripts | ||
src | ||
tests | ||
travis-build | ||
.clang-format | ||
.gitignore | ||
.gitmodules | ||
.travis.yml | ||
Cargo.toml | ||
LICENSE | ||
Makefile | ||
README.md | ||
rustfmt.toml |