pub struct DataLocation {
pub key: String,
pub workers: Vec<WorkerId>,
pub size_bytes: u64,
pub access_count: u64,
pub last_accessed: Option<Instant>,
}Expand description
Data location information.
Fields§
§key: StringData key
workers: Vec<WorkerId>Workers that have this data
size_bytes: u64Data size (bytes)
access_count: u64Access count
last_accessed: Option<Instant>Last accessed time
Trait Implementations§
Source§impl Clone for DataLocation
impl Clone for DataLocation
Source§fn clone(&self) -> DataLocation
fn clone(&self) -> DataLocation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DataLocation
impl Debug for DataLocation
Source§impl<'de> Deserialize<'de> for DataLocation
impl<'de> Deserialize<'de> for DataLocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DataLocation
impl RefUnwindSafe for DataLocation
impl Send for DataLocation
impl Sync for DataLocation
impl Unpin for DataLocation
impl UnsafeUnpin for DataLocation
impl UnwindSafe for DataLocation
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