Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- error[E0277]: `K` cannot be sent between threads safely
- --> src/hltimedcache.rs:139:13
- |
- 139 | tokio::run_async(async {
- | ^^^^^^^^^^^^^^^^ `K` cannot be sent between threads safely
- |
- = help: within `(K, bool)`, the trait `std::marker::Send` is not implemented for `K`
- = help: consider adding a `where K: std::marker::Send` bound
- = note: required because it appears within the type `(K, bool)`
- = note: required because of the requirements on the impl of `std::marker::Send` for `hashbrown::raw::RawTable<(K, bool)>`
- = note: required because it appears within the type `hashbrown::map::HashMap<K, bool>`
- = note: required because of the requirements on the impl of `std::marker::Sync` for `lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<K, bool>>`
- = note: required because it appears within the type `[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<K, bool>>; 256]`
- = note: required because of the requirements on the impl of `std::marker::Sync` for `smallvec::SmallVecData<[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<K, bool>>; 256]>`
- = note: required because it appears within the type `smallvec::SmallVec<[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<K, bool>>; 256]>`
- = note: required because it appears within the type `dhashmap::DHashMap<K, bool>`
- = note: required because it appears within the type `hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because it appears within the type `&hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `&&hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because it appears within the type `[static generator@src/hltimedcache.rs:139:36: 149:14 self:&&hltimedcache::HLTimedCacheInner<K, V> _]`
- = note: required because it appears within the type `std::future::GenFuture<[static generator@src/hltimedcache.rs:139:36: 149:14 self:&&hltimedcache::HLTimedCacheInner<K, V> _]>`
- = note: required because it appears within the type `impl std::future::Future`
- = note: required by `tokio::async_await::run_async`
- error[E0277]: `K` cannot be shared between threads safely
- --> src/hltimedcache.rs:139:13
- |
- 139 | tokio::run_async(async {
- | ^^^^^^^^^^^^^^^^ `K` cannot be shared between threads safely
- |
- = help: within `(K, bool)`, the trait `std::marker::Sync` is not implemented for `K`
- = help: consider adding a `where K: std::marker::Sync` bound
- = note: required because it appears within the type `(K, bool)`
- = note: required because of the requirements on the impl of `std::marker::Sync` for `hashbrown::raw::RawTable<(K, bool)>`
- = note: required because it appears within the type `hashbrown::map::HashMap<K, bool>`
- = note: required because of the requirements on the impl of `std::marker::Sync` for `lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<K, bool>>`
- = note: required because it appears within the type `[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<K, bool>>; 256]`
- = note: required because of the requirements on the impl of `std::marker::Sync` for `smallvec::SmallVecData<[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<K, bool>>; 256]>`
- = note: required because it appears within the type `smallvec::SmallVec<[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<K, bool>>; 256]>`
- = note: required because it appears within the type `dhashmap::DHashMap<K, bool>`
- = note: required because it appears within the type `hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because it appears within the type `&hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `&&hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because it appears within the type `[static generator@src/hltimedcache.rs:139:36: 149:14 self:&&hltimedcache::HLTimedCacheInner<K, V> _]`
- = note: required because it appears within the type `std::future::GenFuture<[static generator@src/hltimedcache.rs:139:36: 149:14 self:&&hltimedcache::HLTimedCacheInner<K, V> _]>`
- = note: required because it appears within the type `impl std::future::Future`
- = note: required by `tokio::async_await::run_async`
- error[E0277]: `V` cannot be sent between threads safely
- --> src/hltimedcache.rs:139:13
- |
- 139 | tokio::run_async(async {
- | ^^^^^^^^^^^^^^^^ `V` cannot be sent between threads safely
- |
- = help: within `(u64, hltimedcache::Entry<V>)`, the trait `std::marker::Send` is not implemented for `V`
- = help: consider adding a `where V: std::marker::Send` bound
- = note: required because it appears within the type `hltimedcache::Entry<V>`
- = note: required because it appears within the type `(u64, hltimedcache::Entry<V>)`
- = note: required because of the requirements on the impl of `std::marker::Send` for `hashbrown::raw::RawTable<(u64, hltimedcache::Entry<V>)>`
- = note: required because it appears within the type `hashbrown::map::HashMap<u64, hltimedcache::Entry<V>>`
- = note: required because of the requirements on the impl of `std::marker::Sync` for `lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<u64, hltimedcache::Entry<V>>>`
- = note: required because it appears within the type `[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<u64, hltimedcache::Entry<V>>>; 256]`
- = note: required because of the requirements on the impl of `std::marker::Sync` for `smallvec::SmallVecData<[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<u64, hltimedcache::Entry<V>>>; 256]>`
- = note: required because it appears within the type `smallvec::SmallVec<[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<u64, hltimedcache::Entry<V>>>; 256]>`
- = note: required because it appears within the type `dhashmap::DHashMap<u64, hltimedcache::Entry<V>>`
- = note: required because it appears within the type `hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because it appears within the type `&hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `&&hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because it appears within the type `[static generator@src/hltimedcache.rs:139:36: 149:14 self:&&hltimedcache::HLTimedCacheInner<K, V> _]`
- = note: required because it appears within the type `std::future::GenFuture<[static generator@src/hltimedcache.rs:139:36: 149:14 self:&&hltimedcache::HLTimedCacheInner<K, V> _]>`
- = note: required because it appears within the type `impl std::future::Future`
- = note: required by `tokio::async_await::run_async`
- error[E0277]: `V` cannot be shared between threads safely
- --> src/hltimedcache.rs:139:13
- |
- 139 | tokio::run_async(async {
- | ^^^^^^^^^^^^^^^^ `V` cannot be shared between threads safely
- |
- = help: within `(u64, hltimedcache::Entry<V>)`, the trait `std::marker::Sync` is not implemented for `V`
- = help: consider adding a `where V: std::marker::Sync` bound
- = note: required because it appears within the type `hltimedcache::Entry<V>`
- = note: required because it appears within the type `(u64, hltimedcache::Entry<V>)`
- = note: required because of the requirements on the impl of `std::marker::Sync` for `hashbrown::raw::RawTable<(u64, hltimedcache::Entry<V>)>`
- = note: required because it appears within the type `hashbrown::map::HashMap<u64, hltimedcache::Entry<V>>`
- = note: required because of the requirements on the impl of `std::marker::Sync` for `lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<u64, hltimedcache::Entry<V>>>`
- = note: required because it appears within the type `[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<u64, hltimedcache::Entry<V>>>; 256]`
- = note: required because of the requirements on the impl of `std::marker::Sync` for `smallvec::SmallVecData<[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<u64, hltimedcache::Entry<V>>>; 256]>`
- = note: required because it appears within the type `smallvec::SmallVec<[lock_api::rwlock::RwLock<parking_lot::raw_rwlock::RawRwLock, hashbrown::map::HashMap<u64, hltimedcache::Entry<V>>>; 256]>`
- = note: required because it appears within the type `dhashmap::DHashMap<u64, hltimedcache::Entry<V>>`
- = note: required because it appears within the type `hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because it appears within the type `&hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because of the requirements on the impl of `std::marker::Send` for `&&hltimedcache::HLTimedCacheInner<K, V>`
- = note: required because it appears within the type `[static generator@src/hltimedcache.rs:139:36: 149:14 self:&&hltimedcache::HLTimedCacheInner<K, V> _]`
- = note: required because it appears within the type `std::future::GenFuture<[static generator@src/hltimedcache.rs:139:36: 149:14 self:&&hltimedcache::HLTimedCacheInner<K, V> _]>`
- = note: required because it appears within the type `impl std::future::Future`
- = note: required by `tokio::async_await::run_async`
- error: aborting due to 4 previous errors
- For more information about this error, try `rustc --explain E0277`.
- error: Could not compile `ccl`.
- To learn more, run the command again with --verbose.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement