Re-exports§
pub use portable_atomic::Ordering::Relaxed;pub use cache::*;pub use db::*;pub use detector::*;pub use forwarder::*;pub use data::*;
Modules§
Macros§
Structs§
- Arc
- A thread-safe reference-counting pointer. ‘Arc’ stands for ‘Atomically Reference Counted’.
- Atomic
Bool - A boolean type which can be safely shared between threads.
- Duration
- A
Durationtype 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. - Ipv4
Addr - An IPv4 address.
- Ipv6
Addr - An IPv6 address.
- Lazy
- A value which is initialized on the first access.
- Once
Cell - 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). - Sqlite
Connect Options - Options and flags which can be used to configure a SQLite connection.
- System
Time - 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.
- Socket
Addr - An internet socket address, either IPv4 or IPv6.
- Sqlite
Journal Mode - Refer to SQLite documentation for the meaning of the database journaling mode.
- Sqlite
Locking Mode - Refer to SQLite documentation for the meaning of the connection locking mode.
- Sqlite
Synchronous - Refer to SQLite documentation for the meaning of various synchronous settings.
Statics§
Traits§
- Async
Read Ext - Extension trait for
AsyncRead. - Async
Write Ext - Extension trait for
AsyncWrite. - Borrow
- A trait for borrowing data.
- Context
- Provides the
contextmethod forResult. - Debug
?formatting.- Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Future
Ext - 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.
- Stream
Ext - Extension trait for
Stream. - Timeout
Ext - An extension trait for
Futures that provides a way to createTimeouts. - Value
- An owned value from the database.
- Value
Ref - A reference to a single value from the database.
Type Aliases§
- Sqlite
Pool - An alias for
Pool, specialized for SQLite. - Sqlite
Pool Options - An alias for
PoolOptions, specialized for SQLite.
Derive Macros§
- Debug
- Derive macro generating an impl of the trait
Debug. - Deserialize
- Serialize