pub struct ServiceConfig {
pub service_id: u8,
pub supported_in: &'static [u8],
pub security_level: u8,
}Expand description
Configuration for a supported UDS service.
Mirrors a DiagService entry in an ODX file.
Fields§
§service_id: u8UDS service ID byte (e.g 0x22 for ReadDataByIdentifier).
supported_in: &'static [u8]Session types in which this service is available. The server returns 0x7F NRC Service Not Supported In Active Session if a request arrives outside these sessions.
security_level: u8Minimum security level required. 0 = no security required.
Implementations§
Trait Implementations§
Source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
Source§fn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
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 moreAuto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnsafeUnpin for ServiceConfig
impl UnwindSafe for ServiceConfig
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