Struct timeboost_rs::BoostableTx 
source · 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: NaiveDateTimeImplementations§
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<BoostableTx> for BoostableTx
 
impl PartialEq<BoostableTx> for BoostableTx
We consider a boostable tx equal if all its fields are equal.
source§impl PartialOrd<BoostableTx> for BoostableTx
 
impl PartialOrd<BoostableTx> for BoostableTx
BoostableTx are comparable by bid and ties are broken by timestamp.
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl Eq for BoostableTx
impl StructuralEq for BoostableTx
Auto Trait Implementations§
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