pub struct ModeSwitchInterface(/* private fields */);
Expand description
A ModeSwitchInterface
defines a set of modes that can be switched
Use ArPackage::create_mode_switch_interface
to create a new mode switch interface
Implementations§
Source§impl ModeSwitchInterface
impl ModeSwitchInterface
Sourcepub fn create_mode_group(
&self,
name: &str,
mode_declaration_group: &ModeDeclarationGroup,
) -> Result<ModeGroup, AutosarAbstractionError>
pub fn create_mode_group( &self, name: &str, mode_declaration_group: &ModeDeclarationGroup, ) -> Result<ModeGroup, AutosarAbstractionError>
Create a mode group in this ModeSwitchInterface
The ModeSwitchInterface
can contain one mode group
Sourcepub fn mode_group(&self) -> Option<ModeGroup>
pub fn mode_group(&self) -> Option<ModeGroup>
Get the mode group for this ModeSwitchInterface
Trait Implementations§
Source§impl AbstractPortInterface for ModeSwitchInterface
impl AbstractPortInterface for ModeSwitchInterface
Source§fn set_is_service(
&self,
is_service: Option<bool>,
) -> Result<(), AutosarAbstractionError>
fn set_is_service( &self, is_service: Option<bool>, ) -> Result<(), AutosarAbstractionError>
Set the isService property for this port interface
Source§fn is_service(&self) -> Option<bool>
fn is_service(&self) -> Option<bool>
Get the isService property for this port interface
Source§impl Clone for ModeSwitchInterface
impl Clone for ModeSwitchInterface
Source§fn clone(&self) -> ModeSwitchInterface
fn clone(&self) -> ModeSwitchInterface
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 ModeSwitchInterface
impl Debug for ModeSwitchInterface
Source§impl From<ModeSwitchInterface> for Element
impl From<ModeSwitchInterface> for Element
Source§fn from(val: ModeSwitchInterface) -> Self
fn from(val: ModeSwitchInterface) -> Self
Converts to this type from the input type.
Source§impl Hash for ModeSwitchInterface
impl Hash for ModeSwitchInterface
Source§impl PartialEq for ModeSwitchInterface
impl PartialEq for ModeSwitchInterface
Source§impl TryFrom<Element> for ModeSwitchInterface
impl TryFrom<Element> for ModeSwitchInterface
impl Eq for ModeSwitchInterface
impl StructuralPartialEq for ModeSwitchInterface
Auto Trait Implementations§
impl Freeze for ModeSwitchInterface
impl !RefUnwindSafe for ModeSwitchInterface
impl Send for ModeSwitchInterface
impl Sync for ModeSwitchInterface
impl Unpin for ModeSwitchInterface
impl !UnwindSafe for ModeSwitchInterface
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.