Module dns_common::prelude

source ·

Re-exports

pub extern crate anyhow;
pub extern crate serde;
pub extern crate serde_yaml;
pub extern crate tracing_subscriber;
pub use super::component::Component;
pub use super::deps::HasDeps;
pub use super::fs::ToStringExt;
pub use tracing;

Modules

Events represent single points in time during the execution of a program.
Attach a span to a std::future::Future.
Spans represent periods of time in which a program was executing in a particular context.

Macros

Construct an ad-hoc error from a string or existing non-anyhow error value.
Constructs an event at the debug level.
Constructs an event at the error level.
Constructs a new Event.
Constructs an event at the info level.
Constructs a new span.
Constructs an event at the trace level.
Constructs an event at the warn level.

Structs

A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
The BufReader<R> struct adds buffering to any reader.
The Error type, a wrapper around a dynamic error type.
An object providing access to an open file on the filesystem.
A hash map implemented with quadratic probing and SIMD lookup.
A hash set implemented as a HashMap where the value is ().
A mutual exclusion primitive useful for protecting shared data
A slice of a path (akin to str).
An owned, mutable path (akin to String).
A reader-writer lock
A TypeId represents a globally unique identifier for a type.

Traits

A trait to emulate dynamic typing.
Provides the context method for Result.
A data structure that can be deserialized from any data format supported by Serde.
A data format that can deserialize any data structure supported by Serde.
A data structure that can be serialized into any data format supported by Serde.
A data format that can serialize any data structure supported by Serde.
Simple and safe type conversions that may fail in a controlled way under some circumstances. It is the reciprocal of TryInto.
An attempted conversion that consumes self, which may or may not be expensive.

Type Definitions

Result<T, Error>

Attribute Macros

Instruments a function to create and enter a tracing span every time the function is called.

Derive Macros