pub enum TcpConnectionState {
Disconnected,
Connecting {
initiated_by: NodeAddress,
at: Instant,
},
Connected {
initiator: NodeAddress,
acceptor: NodeAddress,
},
Reset,
}Expand description
The state of a TCP connection between two nodes on the bus.
Variants§
Disconnected
No connection exists - messages are rejected.
Connecting
A connection request is in progress.
Connected
Connection is established - messages flow normally.
Reset
Connection was reset by the bus fault injector. Nodes will observe this as a
TcpEvent::ConnectionReset
Implementations§
Source§impl TcpConnectionState
impl TcpConnectionState
pub fn is_connected(&self) -> bool
Trait Implementations§
Source§impl Clone for TcpConnectionState
impl Clone for TcpConnectionState
Source§fn clone(&self) -> TcpConnectionState
fn clone(&self) -> TcpConnectionState
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 TcpConnectionState
impl Debug for TcpConnectionState
Source§impl PartialEq for TcpConnectionState
impl PartialEq for TcpConnectionState
impl Eq for TcpConnectionState
impl StructuralPartialEq for TcpConnectionState
Auto Trait Implementations§
impl Freeze for TcpConnectionState
impl RefUnwindSafe for TcpConnectionState
impl Send for TcpConnectionState
impl Sync for TcpConnectionState
impl Unpin for TcpConnectionState
impl UnsafeUnpin for TcpConnectionState
impl UnwindSafe for TcpConnectionState
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