pub struct TransformOptions {
pub max_payload_bytes: Option<u32>,
pub timestamp_start_ns: Option<u64>,
pub ip_map: Vec<IpMapping>,
pub proto_truncation: Vec<ProtocolTruncation>,
}Expand description
All packet-level transformation options for a sort run.
Fields§
§max_payload_bytes: Option<u32>Truncate the payload of each packet to at most this many bytes. Ethernet, IP, and transport headers are always preserved.
Overridden per-protocol by proto_truncation.
timestamp_start_ns: Option<u64>When set, all timestamps are shifted so the first sorted packet starts at exactly this nanosecond epoch value.
The delta is computed once in [second_pass] and passed as ts_delta.
ip_map: Vec<IpMapping>IP address replacement rules, evaluated in order for every packet.
proto_truncation: Vec<ProtocolTruncation>Per-protocol payload truncation rules (TOML: [[transform.truncate_by_proto]]).
The first rule whose proto matches the packet’s IP protocol is used.
Falls back to max_payload_bytes when no
rule matches.
Implementations§
Trait Implementations§
Source§impl Clone for TransformOptions
impl Clone for TransformOptions
Source§fn clone(&self) -> TransformOptions
fn clone(&self) -> TransformOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransformOptions
impl Debug for TransformOptions
Source§impl Default for TransformOptions
impl Default for TransformOptions
Source§fn default() -> TransformOptions
fn default() -> TransformOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransformOptions
impl RefUnwindSafe for TransformOptions
impl Send for TransformOptions
impl Sync for TransformOptions
impl Unpin for TransformOptions
impl UnsafeUnpin for TransformOptions
impl UnwindSafe for TransformOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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