pub struct ValueDebugger {
pub reactive_instance: Arc<ModelReactiveEntityInstance>,
pub fsm: ValueDebuggerFsm,
}
Fields§
§reactive_instance: Arc<ModelReactiveEntityInstance>
§fsm: ValueDebuggerFsm
Implementations§
Source§impl ValueDebugger
impl ValueDebugger
pub fn new( reactive_instance: Arc<ModelReactiveEntityInstance>, ty: BehaviourTypeId, f: ValueDebuggerFunction, ) -> Result<Arc<ValueDebugger>, BehaviourCreationError>
Trait Implementations§
Source§impl BehaviourFsm<ReactiveEntityInstance> for ValueDebugger
impl BehaviourFsm<ReactiveEntityInstance> for ValueDebugger
Source§fn ty(&self) -> &BehaviourTypeId
fn ty(&self) -> &BehaviourTypeId
Returns the current state of the behaviour.
Source§fn get_state(&self) -> BehaviourState
fn get_state(&self) -> BehaviourState
Returns the current state of the behaviour.
Source§fn set_state(&self, state: BehaviourState)
fn set_state(&self, state: BehaviourState)
Returns the current state of the behaviour.
Source§fn get_validator(&self) -> &dyn BehaviourValidator<ModelReactiveEntityInstance>
fn get_validator(&self) -> &dyn BehaviourValidator<ModelReactiveEntityInstance>
Returns the validator.
Source§fn get_transitions(
&self,
) -> &dyn BehaviourTransitions<ModelReactiveEntityInstance>
fn get_transitions( &self, ) -> &dyn BehaviourTransitions<ModelReactiveEntityInstance>
Returns the validator.
Source§fn transition(
&self,
target_state: BehaviourState,
) -> Result<(), BehaviourTransitionError>
fn transition( &self, target_state: BehaviourState, ) -> Result<(), BehaviourTransitionError>
Executes a behaviour transition.
Auto Trait Implementations§
impl !Freeze for ValueDebugger
impl !RefUnwindSafe for ValueDebugger
impl Send for ValueDebugger
impl Sync for ValueDebugger
impl Unpin for ValueDebugger
impl !UnwindSafe for ValueDebugger
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> 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