Struct CommonServiceDiscoveryConfig

Source
pub struct CommonServiceDiscoveryConfig<'a> {
    pub multicast_rx_socket: &'a SocketAddress,
    pub multicast_rx_pdu: &'a GeneralPurposePdu,
    pub remote_socket: &'a SocketAddress,
    pub prefer_static_socket_connections: bool,
    pub ipdu_identifier_set: Option<&'a SocketConnectionIpduIdentifierSet>,
    pub name_prefix: Option<&'a str>,
}
Expand description

A CommonServiceDiscoveryConfig contains common configuration settings for System::configure_service_discovery_for_ecu.

This struct contains ECU-independent settings that should be re-used for all ECUs that are configured for SD.

Fields§

§multicast_rx_socket: &'a SocketAddress

the socket address used for multicast rx by all SD ECUs

§multicast_rx_pdu: &'a GeneralPurposePdu

the multicast rx PDU used by all SD ECUs

§remote_socket: &'a SocketAddress

the remote socket used for SD communication. This socket must have an IP address (v4 or v6) set to ANY.

§prefer_static_socket_connections: bool

configure_service_discovery_for_ecu checks if any SocketConnectionBundles exist. If so, the old configuration method must be used. If none are found and the version is new enough, both methods are possible, and this flag determines which one to use.

§ipdu_identifier_set: Option<&'a SocketConnectionIpduIdentifierSet>

an ipdu identifier set in which PduTriggerings are created. Only needed for StaticSocketConnections.

§name_prefix: Option<&'a str>

an optional prefix for the names of the created elements

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.