pub struct SwcModeSwitchEvent(/* private fields */);
Expand description
raised when the specified mode change occurs
Implementations§
Source§impl SwcModeSwitchEvent
impl SwcModeSwitchEvent
Sourcepub fn set_mode_activation_kind(
&self,
activation: ModeActivationKind,
) -> Result<(), AutosarAbstractionError>
pub fn set_mode_activation_kind( &self, activation: ModeActivationKind, ) -> Result<(), AutosarAbstractionError>
Set the ModeActivationKind
that controls when the SwcModeSwitchEvent
is triggered
Sourcepub fn mode_activation_kind(&self) -> Option<ModeActivationKind>
pub fn mode_activation_kind(&self) -> Option<ModeActivationKind>
Get the ModeActivationKind
that controls when the SwcModeSwitchEvent
is triggered
Sourcepub fn set_mode_declaration<T: Into<PortPrototype> + Clone>(
&self,
context_port: &T,
mode_declaration: &ModeDeclaration,
second_mode_declaration: Option<&ModeDeclaration>,
) -> Result<(), AutosarAbstractionError>
pub fn set_mode_declaration<T: Into<PortPrototype> + Clone>( &self, context_port: &T, mode_declaration: &ModeDeclaration, second_mode_declaration: Option<&ModeDeclaration>, ) -> Result<(), AutosarAbstractionError>
Set the ModeDeclaration
that triggers the SwcModeSwitchEvent
The second mode must be provided if the activation kind OnTransition
is configured.
In that case only transitions between the two modes trigger the event.
Sourcepub fn mode_declarations(&self) -> Option<(Vec<ModeDeclaration>, PortPrototype)>
pub fn mode_declarations(&self) -> Option<(Vec<ModeDeclaration>, PortPrototype)>
Get the ModeDeclaration
s that trigger the SwcModeSwitchEvent
The list contains either one or two ModeDeclaration
s depending on the ModeActivationKind
.
Trait Implementations§
Source§impl AbstractRTEEvent for SwcModeSwitchEvent
impl AbstractRTEEvent for SwcModeSwitchEvent
Source§fn set_runnable_entity(
&self,
runnable_entity: &RunnableEntity,
) -> Result<(), AutosarAbstractionError>
fn set_runnable_entity( &self, runnable_entity: &RunnableEntity, ) -> Result<(), AutosarAbstractionError>
Set the
RunnableEntity
that is triggered by the TimingEvent
Source§fn runnable_entity(&self) -> Option<RunnableEntity>
fn runnable_entity(&self) -> Option<RunnableEntity>
Get the
RunnableEntity
that is triggered by the TimingEvent
Source§fn swc_internal_behavior(&self) -> Option<SwcInternalBehavior>
fn swc_internal_behavior(&self) -> Option<SwcInternalBehavior>
Get the
SwcInternalBehavior
that contains the eventSource§impl Clone for SwcModeSwitchEvent
impl Clone for SwcModeSwitchEvent
Source§fn clone(&self) -> SwcModeSwitchEvent
fn clone(&self) -> SwcModeSwitchEvent
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 SwcModeSwitchEvent
impl Debug for SwcModeSwitchEvent
Source§impl From<SwcModeSwitchEvent> for Element
impl From<SwcModeSwitchEvent> for Element
Source§fn from(val: SwcModeSwitchEvent) -> Self
fn from(val: SwcModeSwitchEvent) -> Self
Converts to this type from the input type.
Source§impl Hash for SwcModeSwitchEvent
impl Hash for SwcModeSwitchEvent
Source§impl PartialEq for SwcModeSwitchEvent
impl PartialEq for SwcModeSwitchEvent
Source§impl TryFrom<Element> for SwcModeSwitchEvent
impl TryFrom<Element> for SwcModeSwitchEvent
impl Eq for SwcModeSwitchEvent
impl StructuralPartialEq for SwcModeSwitchEvent
Auto Trait Implementations§
impl Freeze for SwcModeSwitchEvent
impl !RefUnwindSafe for SwcModeSwitchEvent
impl Send for SwcModeSwitchEvent
impl Sync for SwcModeSwitchEvent
impl Unpin for SwcModeSwitchEvent
impl !UnwindSafe for SwcModeSwitchEvent
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.