Crate gfwdns

Crate gfwdns 

Source

Re-exports§

pub use portable_atomic::Ordering::Relaxed;
pub use cache::*;
pub use db::*;
pub use detector::*;
pub use forwarder::*;
pub use data::*;

Modules§

cache
data
db
detector
dns
forwarder

Macros§

m4
m6

Structs§

Arc
A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
AtomicBool
A boolean type which can be safely shared between threads.
Duration
A Duration type to represent a span of time, typically used for system timeouts.
Instant
A measurement of a monotonically nondecreasing clock. Opaque and useful only with Duration.
Ipv4Addr
An IPv4 address.
Ipv6Addr
An IPv6 address.
Lazy
A value which is initialized on the first access.
OnceCell
A thread-safe cell which can be written to only once.
Path
A slice of a path (akin to str).
PathBuf
An owned, mutable path (akin to String).
SqliteConnectOptions
Options and flags which can be used to configure a SQLite connection.
SystemTime
A measurement of the system clock, useful for talking to external entities like the file system or other processes.
TcpListener
A TCP server, listening for connections.
TcpStream
A TCP connection.
UdpSocket
A UDP socket.

Enums§

IpAddr
An IP address, either IPv4 or IPv6.
SocketAddr
An internet socket address, either IPv4 or IPv6.
SqliteJournalMode
Refer to SQLite documentation for the meaning of the database journaling mode.
SqliteLockingMode
Refer to SQLite documentation for the meaning of the connection locking mode.
SqliteSynchronous
Refer to SQLite documentation for the meaning of various synchronous settings.

Statics§

DISABLE_IPV6

Traits§

AsyncReadExt
Extension trait for AsyncRead.
AsyncWriteExt
Extension trait for AsyncWrite.
Borrow
A trait for borrowing data.
Context
Provides the context method for Result.
Debug
? formatting.
Deserialize
A data structure that can be deserialized from any data format supported by Serde.
FutureExt
Extension trait for Future.
LogResult
Row
Represents a single row from the database.
Serialize
A data structure that can be serialized into any data format supported by Serde.
StreamExt
Extension trait for Stream.
TimeoutExt
An extension trait for Futures that provides a way to create Timeouts.
Value
An owned value from the database.
ValueRef
A reference to a single value from the database.

Type Aliases§

SqlitePool
An alias for Pool, specialized for SQLite.
SqlitePoolOptions
An alias for PoolOptions, specialized for SQLite.

Derive Macros§

Debug
Derive macro generating an impl of the trait Debug.
Deserialize
Serialize