pub enum RepTransportKind {
Tcp,
Tls,
Quic,
InMemory,
}Expand description
Wire-level transport selected for replication traffic.
The in-memory transport is a first-class
production option alongside TCP / TLS / QUIC. This enum lets a
caller declare the transport choice in RepConfig so higher-level
orchestration code (e.g., the test harness, the RepTestBase
integration tests, embedded deployments) can route channel
construction through the right factory.
Note: noxu-rep’s crate::net channel types are constructed
directly by the user code that drives the cluster (a TcpListener
on a port, a crate::net::InMemoryTransport::new_group mesh,
etc.). This field is therefore advisory — it documents intent and
lets observability / chaos / harness layers introspect the
transport without inspecting individual channel types.
Variants§
Tcp
Plaintext TCP via crate::net::TcpChannel.
Tls
TLS-encrypted TCP via crate::net::TlsTcpChannel
(requires tls-rustls or tls-native).
Quic
QUIC over UDP via crate::net::QuicChannel
(requires the quic feature).
InMemory
In-process crate::net::InMemoryTransport. Useful for
embedded deployments and integration tests that want real
ReplicatedEnvironment behaviour without opening sockets.
Trait Implementations§
Source§impl Clone for RepTransportKind
impl Clone for RepTransportKind
Source§fn clone(&self) -> RepTransportKind
fn clone(&self) -> RepTransportKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RepTransportKind
impl Debug for RepTransportKind
Source§impl Default for RepTransportKind
impl Default for RepTransportKind
Source§fn default() -> Self
fn default() -> Self
Defaults to RepTransportKind::Tcp to preserve
backward compatibility.
Source§impl Hash for RepTransportKind
impl Hash for RepTransportKind
Source§impl PartialEq for RepTransportKind
impl PartialEq for RepTransportKind
Source§fn eq(&self, other: &RepTransportKind) -> bool
fn eq(&self, other: &RepTransportKind) -> bool
self and other values to be equal, and is used by ==.impl Copy for RepTransportKind
impl Eq for RepTransportKind
impl StructuralPartialEq for RepTransportKind
Auto Trait Implementations§
impl Freeze for RepTransportKind
impl RefUnwindSafe for RepTransportKind
impl Send for RepTransportKind
impl Sync for RepTransportKind
impl Unpin for RepTransportKind
impl UnsafeUnpin for RepTransportKind
impl UnwindSafe for RepTransportKind
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more