pub struct ModeAccessPoint(/* private fields */);
Expand description
A ModeAccessPoint
provides the ability to access the current mode of a ModeDeclarationGroup
Implementations§
Source§impl ModeAccessPoint
impl ModeAccessPoint
Sourcepub fn set_mode_group<T: Into<PortPrototype> + Clone>(
&self,
mode_group: &ModeGroup,
context_port: &T,
) -> Result<(), AutosarAbstractionError>
pub fn set_mode_group<T: Into<PortPrototype> + Clone>( &self, mode_group: &ModeGroup, context_port: &T, ) -> Result<(), AutosarAbstractionError>
Set the mode group and context port for the mode access point
Sourcepub fn mode_group(&self) -> Option<(ModeGroup, PortPrototype)>
pub fn mode_group(&self) -> Option<(ModeGroup, PortPrototype)>
Get the mode group and context port for the mode access point
Sourcepub fn runnable_entity(&self) -> Option<RunnableEntity>
pub fn runnable_entity(&self) -> Option<RunnableEntity>
Get the RunnableEntity
that contains the ModeAccessPoint
Trait Implementations§
Source§impl AbstractionElement for ModeAccessPoint
impl AbstractionElement for ModeAccessPoint
Source§impl Clone for ModeAccessPoint
impl Clone for ModeAccessPoint
Source§fn clone(&self) -> ModeAccessPoint
fn clone(&self) -> ModeAccessPoint
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 ModeAccessPoint
impl Debug for ModeAccessPoint
Source§impl From<ModeAccessPoint> for Element
impl From<ModeAccessPoint> for Element
Source§fn from(val: ModeAccessPoint) -> Self
fn from(val: ModeAccessPoint) -> Self
Converts to this type from the input type.
Source§impl Hash for ModeAccessPoint
impl Hash for ModeAccessPoint
Source§impl PartialEq for ModeAccessPoint
impl PartialEq for ModeAccessPoint
Source§impl TryFrom<Element> for ModeAccessPoint
impl TryFrom<Element> for ModeAccessPoint
impl Eq for ModeAccessPoint
impl StructuralPartialEq for ModeAccessPoint
Auto Trait Implementations§
impl Freeze for ModeAccessPoint
impl !RefUnwindSafe for ModeAccessPoint
impl Send for ModeAccessPoint
impl Sync for ModeAccessPoint
impl Unpin for ModeAccessPoint
impl !UnwindSafe for ModeAccessPoint
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.