pub struct StaticSocketConnection(/* private fields */);
Expand description
A static socket connection is a connection between two sockets.
This is the new way to establish a connection. It was introduced in Autosar 4.5.0 (AUTOSAR_00048
).
Implementations§
Source§impl StaticSocketConnection
impl StaticSocketConnection
Sourcepub fn socket_address(&self) -> Result<SocketAddress, AutosarAbstractionError>
pub fn socket_address(&self) -> Result<SocketAddress, AutosarAbstractionError>
get the socket address containing this static socket connection
Sourcepub fn set_remote_socket(
&self,
remote_socket: &SocketAddress,
) -> Result<(), AutosarAbstractionError>
pub fn set_remote_socket( &self, remote_socket: &SocketAddress, ) -> Result<(), AutosarAbstractionError>
set the remote socket of this connection
Sourcepub fn remote_socket(&self) -> Option<SocketAddress>
pub fn remote_socket(&self) -> Option<SocketAddress>
get the remote socket of this connection
Sourcepub fn add_ipdu_identifier(
&self,
identifier: &SoConIPduIdentifier,
) -> Result<(), AutosarAbstractionError>
pub fn add_ipdu_identifier( &self, identifier: &SoConIPduIdentifier, ) -> Result<(), AutosarAbstractionError>
add a SoConIPduIdentifier
to this static socket connection
Sourcepub fn ipdu_identifiers(
&self,
) -> impl Iterator<Item = SoConIPduIdentifier> + Send + 'static
pub fn ipdu_identifiers( &self, ) -> impl Iterator<Item = SoConIPduIdentifier> + Send + 'static
create an iterator over all SoConIPduIdentifiers
in this static socket connection
Sourcepub fn set_tcp_role(
&self,
role: Option<TcpRole>,
) -> Result<(), AutosarAbstractionError>
pub fn set_tcp_role( &self, role: Option<TcpRole>, ) -> Result<(), AutosarAbstractionError>
set the TCP role of this static socket connection
Sourcepub fn set_tcp_connect_timeout(
&self,
timeout: Option<f64>,
) -> Result<(), AutosarAbstractionError>
pub fn set_tcp_connect_timeout( &self, timeout: Option<f64>, ) -> Result<(), AutosarAbstractionError>
set the TCP connect timeout of this static socket connection
Sourcepub fn tcp_connect_timeout(&self) -> Option<f64>
pub fn tcp_connect_timeout(&self) -> Option<f64>
get the TCP connect timeout of this static socket connection
Trait Implementations§
Source§impl Clone for StaticSocketConnection
impl Clone for StaticSocketConnection
Source§fn clone(&self) -> StaticSocketConnection
fn clone(&self) -> StaticSocketConnection
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 StaticSocketConnection
impl Debug for StaticSocketConnection
Source§impl From<StaticSocketConnection> for Element
impl From<StaticSocketConnection> for Element
Source§fn from(val: StaticSocketConnection) -> Self
fn from(val: StaticSocketConnection) -> Self
Converts to this type from the input type.
Source§impl Hash for StaticSocketConnection
impl Hash for StaticSocketConnection
Source§impl PartialEq for StaticSocketConnection
impl PartialEq for StaticSocketConnection
Source§impl TryFrom<Element> for StaticSocketConnection
impl TryFrom<Element> for StaticSocketConnection
impl Eq for StaticSocketConnection
impl StructuralPartialEq for StaticSocketConnection
Auto Trait Implementations§
impl Freeze for StaticSocketConnection
impl !RefUnwindSafe for StaticSocketConnection
impl Send for StaticSocketConnection
impl Sync for StaticSocketConnection
impl Unpin for StaticSocketConnection
impl !UnwindSafe for StaticSocketConnection
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.