pub struct SortOptions {
pub output: PathBuf,
pub slice_secs: Option<u64>,
pub on_disk: bool,
pub filter: Filter,
pub bpf_filter: Option<BpfExpr>,
pub transform: TransformOptions,
}Expand description
Options for sort_file.
Fields§
§output: PathBufDestination: a file path when no slicing, a directory path when slicing.
slice_secs: Option<u64>Time-slice interval in seconds. None produces a single output file.
on_disk: boolWhen true, write the index to a .idx sidecar file instead of RAM.
filter: FilterStructured packet filter applied during the second pass.
bpf_filter: Option<BpfExpr>BPF expression filter AND-ed with filter. None = no BPF filter.
transform: TransformOptionsPacket-level transformations (truncation, timestamp shift, IP mapping).
Trait Implementations§
Source§impl Debug for SortOptions
impl Debug for SortOptions
Source§impl Default for SortOptions
impl Default for SortOptions
Source§fn default() -> SortOptions
fn default() -> SortOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SortOptions
impl RefUnwindSafe for SortOptions
impl Send for SortOptions
impl Sync for SortOptions
impl Unpin for SortOptions
impl UnsafeUnpin for SortOptions
impl UnwindSafe for SortOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more