pub enum CapturePath {
FromLocal = 0,
FromPeer = 1,
SynthesizedToLocal = 2,
SynthesizedToPeer = 3,
}Expand description
The direction/path of a captured packet, mirroring Go Tailscale’s capture.Path. The numeric
values are the on-wire path codes written into each pcap record’s Tailscale preamble.
Variants§
FromLocal = 0
A packet from the local device, heading out to a peer (pre-encrypt).
FromPeer = 1
A packet received from a peer, decrypted, heading to the local device.
SynthesizedToLocal = 2
A packet synthesized by us toward the local device. Retained for Go capture.Path on-wire
code parity (so captured pcap path codes match Go’s, and a future synthesized-packet tee
point can emit it); not currently emitted — the tee only produces FromLocal/FromPeer.
SynthesizedToPeer = 3
A packet synthesized by us toward a peer. Retained for Go capture.Path on-wire code parity
(see Self::SynthesizedToLocal); not currently emitted.
Implementations§
Trait Implementations§
Source§impl Clone for CapturePath
impl Clone for CapturePath
Source§fn clone(&self) -> CapturePath
fn clone(&self) -> CapturePath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CapturePath
Source§impl Debug for CapturePath
impl Debug for CapturePath
impl Eq for CapturePath
Source§impl PartialEq for CapturePath
impl PartialEq for CapturePath
Source§fn eq(&self, other: &CapturePath) -> bool
fn eq(&self, other: &CapturePath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CapturePath
Auto Trait Implementations§
impl Freeze for CapturePath
impl RefUnwindSafe for CapturePath
impl Send for CapturePath
impl Sync for CapturePath
impl Unpin for CapturePath
impl UnsafeUnpin for CapturePath
impl UnwindSafe for CapturePath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more