pub struct MarkedTransition<To: TaskNode + ?Sized>(/* private fields */);Expand description
A linear transition that preserves the destination node type.
This is returned by Transition::next and NodeId::transitions_with, then accepted by
Task::register_transition closures.
Implementations§
Source§impl<To: TaskNode + ?Sized> MarkedTransition<To>
impl<To: TaskNode + ?Sized> MarkedTransition<To>
Sourcepub fn concurrency_model(self, concurrency_model: ConcurrencyModel) -> Self
pub fn concurrency_model(self, concurrency_model: ConcurrencyModel) -> Self
Overrides the concurrency model for work scheduled by this transition.
Trait Implementations§
Source§impl<To: TaskNode + ?Sized> From<MarkedTransition<To>> for Transition
impl<To: TaskNode + ?Sized> From<MarkedTransition<To>> for Transition
Source§fn from(marked_transition: MarkedTransition<To>) -> Self
fn from(marked_transition: MarkedTransition<To>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<To> !RefUnwindSafe for MarkedTransition<To>
impl<To> !UnwindSafe for MarkedTransition<To>
impl<To> Forget for MarkedTransition<To>where
To: ?Sized,
impl<To> Freeze for MarkedTransition<To>
impl<To> Send for MarkedTransition<To>
impl<To> Sync for MarkedTransition<To>
impl<To> Unpin for MarkedTransition<To>
impl<To> UnsafeUnpin for MarkedTransition<To>
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> 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> ⓘ
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