Struct dnstap::DNSTapBuilder
[−]
[src]
pub struct DNSTapBuilder {
pub backlog: usize,
pub unix_socket_path: Option<PathBuf>,
}Builds a DNSTapPendingWriter object, to eventually start a
DNSTapWriter service.
Fields
backlog: usize
unix_socket_path: Option<PathBuf>
Methods
impl DNSTapBuilder[src]
fn default() -> DNSTapBuilder
Returns a DNSTapBuilder boilerplate
fn backlog(self, backlog: usize) -> Self
Maximum number of messages to keep in queue.
fn unix_socket_path<P>(self, path: P) -> Self where P: AsRef<Path>
Path to the UNIX socket to send dnstap data to.
fn listen(self) -> Result<DNSTapPendingWriter, &'static str>
Creates a DNSTapPendingWriter object. The communication channel is established at this
point, and the sender() function can be used in order to get Sender objects.
Trait Implementations
impl Clone for DNSTapBuilder[src]
fn clone(&self) -> DNSTapBuilder
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Hash for DNSTapBuilder[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher1.3.0
Feeds a slice of this type into the state provided.