pub enum Direction {
Inbound,
Outbound,
}Expand description
Which side accepted the TCP connection this observation rides on (SPEC.md §6.3).
Variants§
Inbound
This node accepted the connection — remote is a genuine observation of the peer’s
traffic. Maps from dig_nat::TraversalKind at the call site: every kind other than a relayed
circuit is Path::Direct (SPEC.md §6.3).
Outbound
This node dialled out — remote is the address it CHOSE to dial, never something it
observed.
Trait Implementations§
impl Copy for Direction
impl Eq for Direction
impl StructuralPartialEq for Direction
Auto Trait Implementations§
impl Freeze for Direction
impl RefUnwindSafe for Direction
impl Send for Direction
impl Sync for Direction
impl Unpin for Direction
impl UnsafeUnpin for Direction
impl UnwindSafe for Direction
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