pub struct PowerSequence {
pub id: Id,
pub elements: Vec<PowerSequenceElement>,
pub is_interruptible: bool,
pub max_pause_before: Option<Duration>,
pub abnormal_condition_only: bool,
}Expand description
One way of performing the task.
Fields§
§id: IdUnique within the container that holds it.
elements: Vec<PowerSequenceElement>The steps, in chronological order.
is_interruptible: boolWhether the CEM may pause it once started.
max_pause_before: Option<Duration>The longest the device may be paused between the end of the previous sequence and the start of this one.
abnormal_condition_only: boolWhether this sequence may only be used during an abnormal condition.
Implementations§
Source§impl PowerSequence
impl PowerSequence
Sourcepub fn builder() -> PowerSequenceBuilder
pub fn builder() -> PowerSequenceBuilder
Create an instance of PowerSequence using the builder syntax
Source§impl PowerSequence
impl PowerSequence
Sourcepub fn total_duration(&self) -> Duration
pub fn total_duration(&self) -> Duration
How long the whole sequence takes.
Trait Implementations§
Source§impl Clone for PowerSequence
impl Clone for PowerSequence
Source§impl Debug for PowerSequence
impl Debug for PowerSequence
Source§impl<'de> Deserialize<'de> for PowerSequence
impl<'de> Deserialize<'de> for PowerSequence
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 PowerSequence
impl PartialEq for PowerSequence
Source§impl Serialize for PowerSequence
impl Serialize for PowerSequence
impl StructuralPartialEq for PowerSequence
Auto Trait Implementations§
impl Forget for PowerSequence
impl Freeze for PowerSequence
impl Move for PowerSequence
impl RefUnwindSafe for PowerSequence
impl Send for PowerSequence
impl Sync for PowerSequence
impl Unpin for PowerSequence
impl UnsafeUnpin for PowerSequence
impl UnwindSafe for PowerSequence
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