pub struct Outcome<T> {
pub accepted: Vec<T>,
pub discarded: Vec<(T, Discard)>,
pub held: bool,
pub superseded: Vec<T>,
pub asks_read: bool,
}Expand description
What one call to the fence decided, of the item it was given and of
those it held (v2 §2.10; v2/fences.json’s sequences).
Fields§
§accepted: Vec<T>Accepted, in arrival order.
discarded: Vec<(T, Discard)>Discarded, in arrival order, each with its reason.
held: boolThe item Fence::offer was given is held.
superseded: Vec<T>A state member’s held value replaced by a newer one, or a new one not kept beside the held: within one run the higher seq is kept, across two the later arrival.
asks_read: boolMake one read of the address’s descriptors, and hand its end to
Fence::read_ended.
Trait Implementations§
impl<T: Eq> Eq for Outcome<T>
impl<T: PartialEq> StructuralPartialEq for Outcome<T>
Auto Trait Implementations§
impl<T> Forget for Outcome<T>
impl<T> Freeze for Outcome<T>
impl<T> Move for Outcome<T>
impl<T> RefUnwindSafe for Outcome<T>where
T: RefUnwindSafe,
impl<T> Send for Outcome<T>
impl<T> Sync for Outcome<T>
impl<T> Unpin for Outcome<T>
impl<T> UnsafeUnpin for Outcome<T>where
*const u8 is !null: UnsafeUnpin,
PhantomData<T>: UnsafeUnpin,
PhantomData<(T, Discard)>: UnsafeUnpin,
impl<T> UnwindSafe for Outcome<T>where
RawVecInner: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more