pub struct BoostableTx {
pub id: u64,
pub bid: u64,
pub timestamp: NaiveDateTime,
}
Expand description
A BoostableTx represents three important values: a unique id, a bid, and a timestamp.
Bid and timestamp values are used when performing the time boost protocol by the TimeBoostService
at intervals of G milliseconds.
Fields§
§id: u64
§bid: u64
§timestamp: NaiveDateTime
Implementations§
Trait Implementations§
Source§impl Clone for BoostableTx
impl Clone for BoostableTx
Source§fn clone(&self) -> BoostableTx
fn clone(&self) -> BoostableTx
Returns a copy 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 BoostableTx
impl Debug for BoostableTx
Source§impl PartialEq for BoostableTx
We consider a boostable tx equal if all its fields are equal.
impl PartialEq for BoostableTx
We consider a boostable tx equal if all its fields are equal.
Source§impl PartialOrd for BoostableTx
BoostableTx are comparable by bid and ties are broken by timestamp.
impl PartialOrd for BoostableTx
BoostableTx are comparable by bid and ties are broken by timestamp.
impl Eq for BoostableTx
Auto Trait Implementations§
impl Freeze for BoostableTx
impl RefUnwindSafe for BoostableTx
impl Send for BoostableTx
impl Sync for BoostableTx
impl Unpin for BoostableTx
impl UnwindSafe for BoostableTx
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