pub struct Timed<T> {
pub time: u64,
pub data: T,
}Fields§
§time: u64The time when the data was received (in milliseconds).
This timestamp indicates when the data was fetched or updated. Bots can use this to synchronize data with other events or to measure latency.
data: TThe actual data of type T.
This field contains the specific data structure that holds the relevant information for the bot’s operation. Bots can use this to access and manipulate the data as needed.
Trait Implementations§
impl<T: Eq> Eq for Timed<T>
impl<T> StructuralPartialEq for Timed<T>
Auto Trait Implementations§
impl<T> Freeze for Timed<T>where
T: Freeze,
impl<T> RefUnwindSafe for Timed<T>where
T: RefUnwindSafe,
impl<T> Send for Timed<T>where
T: Send,
impl<T> Sync for Timed<T>where
T: Sync,
impl<T> Unpin for Timed<T>where
T: Unpin,
impl<T> UnsafeUnpin for Timed<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Timed<T>where
T: 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.