pub enum TcpMode {
TcpIn,
TcpOut,
}
Expand description
Type of TCP connection
Variants§
TcpIn
Connection will open a TCP server that binds to the provided address
TcpOut
Connection will connect to the provided TCP server address
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcpMode
impl RefUnwindSafe for TcpMode
impl Send for TcpMode
impl Sync for TcpMode
impl Unpin for TcpMode
impl UnwindSafe for TcpMode
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