bach 0.1.2

Discrete-event simulation environment for async workflows
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use super::{block::NameResolution, AsPcap};
use std::{io, net::IpAddr};

pub fn write<W>(out: &mut W, query: &str, result: &IpAddr) -> io::Result<()>
where
    W: io::Write,
{
    NameResolution {
        addr: *result,
        name: query,
    }
    .as_pcap(out)?;

    Ok(())
}