pub struct ProtocolTruncationConfig {
pub proto: String,
pub max_payload_bytes: u32,
}Expand description
A single per-protocol payload truncation rule ([[transform.truncate_by_proto]]).
Fields§
§proto: StringIP protocol name ("tcp", "udp", "icmp") or decimal number ("6").
max_payload_bytes: u32Maximum payload bytes to keep for this protocol.
Trait Implementations§
Source§impl Debug for ProtocolTruncationConfig
impl Debug for ProtocolTruncationConfig
Source§impl<'de> Deserialize<'de> for ProtocolTruncationConfig
impl<'de> Deserialize<'de> for ProtocolTruncationConfig
Source§fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
fn deserialize(value: &mut Value<'de>) -> Result<Self, DeserError>
Given a mutable
Value, allows you to deserialize the type from it,
or accumulate 1 or more errorsAuto Trait Implementations§
impl Freeze for ProtocolTruncationConfig
impl RefUnwindSafe for ProtocolTruncationConfig
impl Send for ProtocolTruncationConfig
impl Sync for ProtocolTruncationConfig
impl Unpin for ProtocolTruncationConfig
impl UnsafeUnpin for ProtocolTruncationConfig
impl UnwindSafe for ProtocolTruncationConfig
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