pub enum TcpConnectionMode {
Outgoing,
Incoming,
}
Expand description
Tcp connection mode
Variants§
Outgoing
Connection was initiated from our node
Incoming
Connection was accepted from a TCP listener
Trait Implementations§
source§impl Clone for TcpConnectionMode
impl Clone for TcpConnectionMode
source§fn clone(&self) -> TcpConnectionMode
fn clone(&self) -> TcpConnectionMode
Returns a copy 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 TcpConnectionMode
impl Debug for TcpConnectionMode
source§impl Display for TcpConnectionMode
impl Display for TcpConnectionMode
impl Copy for TcpConnectionMode
Auto Trait Implementations§
impl RefUnwindSafe for TcpConnectionMode
impl Send for TcpConnectionMode
impl Sync for TcpConnectionMode
impl Unpin for TcpConnectionMode
impl UnwindSafe for TcpConnectionMode
Blanket Implementations§
source§impl<D> AsyncTryClone for D
impl<D> AsyncTryClone for D
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