pub struct SocketConnectionBundle(/* private fields */);
Expand description
A SocketConnectionBundle
describes a connection between a server port and multiple client ports.
It contains multiple bundled connections, each transporting one or more PDUs.
Implementations§
Source§impl SocketConnectionBundle
impl SocketConnectionBundle
Sourcepub fn physical_channel(
&self,
) -> Result<EthernetPhysicalChannel, AutosarAbstractionError>
pub fn physical_channel( &self, ) -> Result<EthernetPhysicalChannel, AutosarAbstractionError>
get the physical channel containing this socket connection bundle
§Example
let bundle = channel.create_socket_connection_bundle("Bundle", &server_socket)?;
assert_eq!(channel, bundle.physical_channel()?);
Sourcepub fn set_server_port(
&self,
server_port: &SocketAddress,
) -> Result<(), AutosarAbstractionError>
pub fn set_server_port( &self, server_port: &SocketAddress, ) -> Result<(), AutosarAbstractionError>
set the server port of this socket connection bundle
Sourcepub fn server_port(&self) -> Option<SocketAddress>
pub fn server_port(&self) -> Option<SocketAddress>
get the server port of this socket connection bundle
Sourcepub fn create_bundled_connection(
&self,
client_port: &SocketAddress,
) -> Result<SocketConnection, AutosarAbstractionError>
pub fn create_bundled_connection( &self, client_port: &SocketAddress, ) -> Result<SocketConnection, AutosarAbstractionError>
create a bundled SocketConnection
between the server port and a client port
Sourcepub fn bundled_connections(
&self,
) -> impl Iterator<Item = SocketConnection> + Send + 'static
pub fn bundled_connections( &self, ) -> impl Iterator<Item = SocketConnection> + Send + 'static
create an iterator over all bundled connections in this socket connection bundle
Trait Implementations§
Source§impl Clone for SocketConnectionBundle
impl Clone for SocketConnectionBundle
Source§fn clone(&self) -> SocketConnectionBundle
fn clone(&self) -> SocketConnectionBundle
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 SocketConnectionBundle
impl Debug for SocketConnectionBundle
Source§impl From<SocketConnectionBundle> for Element
impl From<SocketConnectionBundle> for Element
Source§fn from(val: SocketConnectionBundle) -> Self
fn from(val: SocketConnectionBundle) -> Self
Converts to this type from the input type.
Source§impl Hash for SocketConnectionBundle
impl Hash for SocketConnectionBundle
Source§impl PartialEq for SocketConnectionBundle
impl PartialEq for SocketConnectionBundle
Source§impl TryFrom<Element> for SocketConnectionBundle
impl TryFrom<Element> for SocketConnectionBundle
impl Eq for SocketConnectionBundle
impl StructuralPartialEq for SocketConnectionBundle
Auto Trait Implementations§
impl Freeze for SocketConnectionBundle
impl !RefUnwindSafe for SocketConnectionBundle
impl Send for SocketConnectionBundle
impl Sync for SocketConnectionBundle
impl Unpin for SocketConnectionBundle
impl !UnwindSafe for SocketConnectionBundle
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.