pub struct NetworkEndpoint(/* private fields */);
Expand description
A network endpoint contains address information for a connection
Implementations§
Source§impl NetworkEndpoint
impl NetworkEndpoint
Sourcepub fn add_network_endpoint_address(
&self,
address: NetworkEndpointAddress,
) -> Result<(), AutosarAbstractionError>
pub fn add_network_endpoint_address( &self, address: NetworkEndpointAddress, ) -> Result<(), AutosarAbstractionError>
add a network endpoint address to this NetworkEndpoint
A NetworkEndpoint
may have multiple sets of address information. The following restrictions apply:
- all addresses must have the same type, i.e. all IPv4 or all IPv6
- only one of them may be a
Fixed
address, all others must be dynamic (DHCP, automatic link local, etc.)
Sourcepub fn addresses(
&self,
) -> impl Iterator<Item = NetworkEndpointAddress> + Send + 'static
pub fn addresses( &self, ) -> impl Iterator<Item = NetworkEndpointAddress> + Send + 'static
iterator over all addresses in the NetworkEndpoint
Trait Implementations§
Source§impl AbstractionElement for NetworkEndpoint
impl AbstractionElement for NetworkEndpoint
Source§impl Clone for NetworkEndpoint
impl Clone for NetworkEndpoint
Source§fn clone(&self) -> NetworkEndpoint
fn clone(&self) -> NetworkEndpoint
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 NetworkEndpoint
impl Debug for NetworkEndpoint
Source§impl From<NetworkEndpoint> for Element
impl From<NetworkEndpoint> for Element
Source§fn from(val: NetworkEndpoint) -> Self
fn from(val: NetworkEndpoint) -> Self
Converts to this type from the input type.
Source§impl Hash for NetworkEndpoint
impl Hash for NetworkEndpoint
Source§impl PartialEq for NetworkEndpoint
impl PartialEq for NetworkEndpoint
Source§impl TryFrom<Element> for NetworkEndpoint
impl TryFrom<Element> for NetworkEndpoint
impl Eq for NetworkEndpoint
impl StructuralPartialEq for NetworkEndpoint
Auto Trait Implementations§
impl Freeze for NetworkEndpoint
impl !RefUnwindSafe for NetworkEndpoint
impl Send for NetworkEndpoint
impl Sync for NetworkEndpoint
impl Unpin for NetworkEndpoint
impl !UnwindSafe for NetworkEndpoint
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.