[−][src]Struct dnstap::DNSTapBuilder
Builds a DNSTapPendingWriter
object, to eventually start a
DNSTapWriter
service.
Fields
backlog: usize
unix_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]
P: AsRef<Path>,
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(&self) -> 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]
Auto Trait Implementations
impl Send for DNSTapBuilder
impl Sync for DNSTapBuilder
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,