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