pub enum ConnectionDirection {
ConnectToAddress(SocketAddr),
ListenOnAddress(SocketAddr),
}Expand description
The direction of the connection with the address of the socket.
Either we listen on an address or we connect to an address.
This is used in the run_simulation function.
Variants§
ConnectToAddress(SocketAddr)
ListenOnAddress(SocketAddr)
Auto Trait Implementations§
impl Freeze for ConnectionDirection
impl RefUnwindSafe for ConnectionDirection
impl Send for ConnectionDirection
impl Sync for ConnectionDirection
impl Unpin for ConnectionDirection
impl UnwindSafe for ConnectionDirection
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