pub enum RNodeState {
Ready(RtArgs),
Running(RtArgs),
Success(RtArgs),
Failure(RtArgs),
Halting(RtArgs),
}Expand description
The current state of the node. RtArgs here represent the arguments that are passed between ticks and used as meta info
Variants§
Implementations§
Source§impl RNodeState
impl RNodeState
pub fn from(tick_args: RtArgs, res: TickResult) -> RNodeState
pub fn to_tick_result(&self) -> RtResult<TickResult>
pub fn is_running(&self) -> bool
pub fn is_ready(&self) -> bool
pub fn is_finished(&self) -> bool
pub fn args(&self) -> RtArgs
Trait Implementations§
Source§impl Clone for RNodeState
impl Clone for RNodeState
Source§fn clone(&self) -> RNodeState
fn clone(&self) -> RNodeState
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 Debug for RNodeState
impl Debug for RNodeState
Source§impl Display for RNodeState
impl Display for RNodeState
Source§impl TryFrom<RNodeState> for TickResultFin
impl TryFrom<RNodeState> for TickResultFin
Source§type Error = RuntimeError
type Error = RuntimeError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for RNodeState
impl RefUnwindSafe for RNodeState
impl Send for RNodeState
impl Sync for RNodeState
impl Unpin for RNodeState
impl UnwindSafe for RNodeState
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
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>
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