[][src]Struct dnstap::DNSTapBuilder

pub struct DNSTapBuilder {
    pub backlog: usize,
    pub unix_socket_path: Option<PathBuf>,
}

Builds a DNSTapPendingWriter object, to eventually start a DNSTapWriter service.

Fields

backlog: usizeunix_socket_path: Option<PathBuf>

Methods

impl DNSTapBuilder[src]

pub fn default() -> DNSTapBuilder[src]

Returns a DNSTapBuilder boilerplate

pub fn backlog(self, backlog: usize) -> Self[src]

Maximum number of messages to keep in queue.

pub fn unix_socket_path<P>(self, path: P) -> Self where
    P: AsRef<Path>, 
[src]

Path to the UNIX socket to send dnstap data to.

pub fn listen(self) -> Result<DNSTapPendingWriter, &'static str>[src]

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_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for DNSTapBuilder[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]