pub struct AcceptedData<T> {
pub id: u64,
pub value: Arc<T>,
pub from: u64,
}
Expand description
Accepted data (Acceptor -> Proposer)
Fields§
§id: u64
§value: Arc<T>
§from: u64
Trait Implementations§
Source§impl<T: Clone> Clone for AcceptedData<T>
impl<T: Clone> Clone for AcceptedData<T>
Source§fn clone(&self) -> AcceptedData<T>
fn clone(&self) -> AcceptedData<T>
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<T: Debug> Debug for AcceptedData<T>
impl<T: Debug> Debug for AcceptedData<T>
Source§impl<T: Hash> Hash for AcceptedData<T>
impl<T: Hash> Hash for AcceptedData<T>
Source§impl<T: PartialEq> PartialEq for AcceptedData<T>
impl<T: PartialEq> PartialEq for AcceptedData<T>
impl<T: Eq> Eq for AcceptedData<T>
impl<T> StructuralPartialEq for AcceptedData<T>
Auto Trait Implementations§
impl<T> Freeze for AcceptedData<T>
impl<T> RefUnwindSafe for AcceptedData<T>where
T: RefUnwindSafe,
impl<T> Send for AcceptedData<T>
impl<T> Sync for AcceptedData<T>
impl<T> Unpin for AcceptedData<T>
impl<T> UnwindSafe for AcceptedData<T>where
T: RefUnwindSafe,
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