pcapsql_core/
prelude.rs

1//! Convenient re-exports for common usage.
2//!
3//! This module provides a curated set of the most commonly used types
4//! from pcapsql-core, allowing you to import them with a single `use` statement.
5//!
6//! # Example
7//!
8//! ```rust,no_run
9//! use pcapsql_core::prelude::*;
10//!
11//! // Create a protocol registry with all built-in parsers
12//! let registry = default_registry();
13//!
14//! // Protocol registry and parsing are now available
15//! ```
16
17// Schema types
18pub use crate::schema::{DataKind, FieldDescriptor, ProtocolSchema};
19
20// Protocol types
21pub use crate::protocol::{
22    default_registry, parse_packet, BuiltinProtocol, FieldValue, ParseContext, ParseResult,
23    PayloadMode, Protocol, ProtocolRegistry,
24};
25
26// I/O types
27pub use crate::io::{FilePacketReader, FilePacketSource, PacketReader, PacketSource, RawPacket};
28
29// Cache types
30pub use crate::cache::{LruParseCache, NoCache, ParseCache};
31
32// Error types
33pub use crate::error::{Error, Result};