pub struct SharedDeclines(/* private fields */);Expand description
Owner declines shared by a family of runs: a run and the child runs it starts (and their children). A decline recorded in any of them reaches every other one before its next call, so a parent is refused an effect the owner declined inside its child, and a running child is refused one the owner declined in its parent after the child started.
Attach it with crate::RunState::share_declines. The kernel exchanges
it with the run’s own crate::RunState::declined when a turn starts,
before each call is judged, when the owner declines, and when the run
ends; the run’s own list stays the serialized source of truth (so a
parent whose child was declined something never ends Succeeded). The
handle itself is not serialized: a run resumed from saved state keeps
its own declines and shares them again once the application reattaches
a set.
It only grows. Clones share one set.
Implementations§
Trait Implementations§
Source§fn clone(&self) -> SharedDeclines
fn clone(&self) -> SharedDeclines
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn default() -> SharedDeclines
fn default() -> SharedDeclines
Auto Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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