pub struct CacheObj<K, D>where
K: Serialize + DeserializeOwned + AsRef<[u8]> + Hash + Eq + Ord + Clone + Debug + Sync + Send + 'static,
D: Serialize + DeserializeOwned + Clone + Debug + Sync + Send + 'static,{
pub key: K,
pub fhandle: Arc<FileHandle>,
pub userdata: D,
}Fields§
§key: K§fhandle: Arc<FileHandle>§userdata: DTrait Implementations§
Auto Trait Implementations§
impl<K, D> Freeze for CacheObj<K, D>
impl<K, D> RefUnwindSafe for CacheObj<K, D>where
K: RefUnwindSafe,
D: RefUnwindSafe,
impl<K, D> Send for CacheObj<K, D>
impl<K, D> Sync for CacheObj<K, D>
impl<K, D> Unpin for CacheObj<K, D>
impl<K, D> UnwindSafe for CacheObj<K, D>where
K: UnwindSafe,
D: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more