pub struct DnsTransaction {
pub five_tuple: FiveTuple,
pub data: Dns,
}Expand description
A parsed DNS transaction and connection metadata.
Fields§
§five_tuple: FiveTuple§data: DnsImplementations§
Source§impl DnsTransaction
impl DnsTransaction
Sourcepub fn client(&self) -> SocketAddr
pub fn client(&self) -> SocketAddr
Returns the DNS resolver’s socket address.
Sourcepub fn server(&self) -> SocketAddr
pub fn server(&self) -> SocketAddr
Returns the DNS server’s socket address.
Trait Implementations§
Source§impl Debug for DnsTransaction
impl Debug for DnsTransaction
Source§impl Serialize for DnsTransaction
impl Serialize for DnsTransaction
Source§impl Subscribable for DnsTransaction
impl Subscribable for DnsTransaction
type Tracked = TrackedDns
Source§fn parsers() -> Vec<ConnParser>
fn parsers() -> Vec<ConnParser>
Returns a list of protocol parsers required to parse the subscribable type.
Source§fn process_packet(
mbuf: Mbuf,
subscription: &Subscription<'_, Self>,
conn_tracker: &mut ConnTracker<Self::Tracked>,
)
fn process_packet( mbuf: Mbuf, subscription: &Subscription<'_, Self>, conn_tracker: &mut ConnTracker<Self::Tracked>, )
Process a single incoming packet.
Auto Trait Implementations§
impl Freeze for DnsTransaction
impl RefUnwindSafe for DnsTransaction
impl Send for DnsTransaction
impl Sync for DnsTransaction
impl Unpin for DnsTransaction
impl UnsafeUnpin for DnsTransaction
impl UnwindSafe for DnsTransaction
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> 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