pub struct Transition {
pub id: Id,
pub from: Id,
pub to: Id,
pub start_timers: Vec<Id>,
pub blocking_timers: Vec<Id>,
pub transition_costs: Option<f64>,
pub transition_duration: Option<Duration>,
pub abnormal_condition_only: bool,
}Expand description
A permitted move from one operation mode to another.
Fields§
§id: IdUnique within the system or actuator description that contains it.
from: IdThe operation mode being left.
to: IdThe operation mode being entered.
start_timers: Vec<Id>Timers that are (re)started when this transition is initiated.
blocking_timers: Vec<Id>Timers that block this transition while any of them is unfinished.
transition_costs: Option<f64>Absolute cost of making the transition, in the resource’s currency.
transition_duration: Option<Duration>Time between initiating the transition and the device behaving according to the mode it moves to. Absent means negligible.
abnormal_condition_only: boolWhether this transition may only be used during an abnormal condition.
Implementations§
Source§impl Transition
impl Transition
Sourcepub fn builder() -> TransitionBuilder
pub fn builder() -> TransitionBuilder
Create an instance of Transition using the builder syntax
Trait Implementations§
Source§impl Clone for Transition
impl Clone for Transition
Source§fn clone(&self) -> Transition
fn clone(&self) -> Transition
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Transition
impl Debug for Transition
Source§impl<'de> Deserialize<'de> for Transition
impl<'de> Deserialize<'de> for Transition
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for Transition
impl PartialEq for Transition
Source§impl Serialize for Transition
impl Serialize for Transition
impl StructuralPartialEq for Transition
Auto Trait Implementations§
impl Freeze for Transition
impl RefUnwindSafe for Transition
impl Send for Transition
impl Sync for Transition
impl Unpin for Transition
impl UnsafeUnpin for Transition
impl UnwindSafe for Transition
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