#[non_exhaustive]pub enum UserTransportKind {
UdpV4,
UdpV6,
TcpV4,
TcpV6,
}Expand description
Choice of transport for DCPS user traffic. Discovery (SPDP/SEDP) remains UDPv4 multicast independently of this.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UdpV4
UDP IPv4 (default).
UdpV6
UDP IPv6.
TcpV4
TCP IPv4 (DDS-TCP-PSM LOCATOR_KIND_TCPV4).
TcpV6
TCP IPv6 (DDS-TCP-PSM LOCATOR_KIND_TCPV6).
Trait Implementations§
Source§impl Clone for UserTransportKind
impl Clone for UserTransportKind
Source§fn clone(&self) -> UserTransportKind
fn clone(&self) -> UserTransportKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for UserTransportKind
Source§impl Debug for UserTransportKind
impl Debug for UserTransportKind
impl Eq for UserTransportKind
Source§impl PartialEq for UserTransportKind
impl PartialEq for UserTransportKind
Source§fn eq(&self, other: &UserTransportKind) -> bool
fn eq(&self, other: &UserTransportKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UserTransportKind
Auto Trait Implementations§
impl Freeze for UserTransportKind
impl RefUnwindSafe for UserTransportKind
impl Send for UserTransportKind
impl Sync for UserTransportKind
impl Unpin for UserTransportKind
impl UnsafeUnpin for UserTransportKind
impl UnwindSafe for UserTransportKind
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