pub struct ModuleId(pub String);Expand description
Logical identifier for a vehicle module. String-based for extensibility.
Tuple Fields§
§0: StringImplementations§
Source§impl ModuleId
impl ModuleId
pub const ECM: &'static str = "ecm"
pub const TCM: &'static str = "tcm"
pub const BCM: &'static str = "bcm"
pub const ABS: &'static str = "abs"
pub const IPC: &'static str = "ipc"
pub const AIRBAG: &'static str = "airbag"
pub const HVAC: &'static str = "hvac"
pub const FICM: &'static str = "ficm"
pub fn new(id: impl Into<String>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModuleId
impl<'de> Deserialize<'de> for ModuleId
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
impl Eq for ModuleId
impl StructuralPartialEq for ModuleId
Auto Trait Implementations§
impl Freeze for ModuleId
impl RefUnwindSafe for ModuleId
impl Send for ModuleId
impl Sync for ModuleId
impl Unpin for ModuleId
impl UnsafeUnpin for ModuleId
impl UnwindSafe for ModuleId
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.