pub struct ProtocolTruncation {
pub proto: u8,
pub max_payload_bytes: u32,
}Expand description
A per-protocol payload truncation rule.
When the packet’s IP protocol matches proto, the payload is truncated to
at most max_payload_bytes bytes. Per-protocol rules take precedence over
the global TransformOptions::max_payload_bytes limit.
Fields§
§proto: u8IP protocol number (e.g. 6 = TCP, 17 = UDP).
max_payload_bytes: u32Maximum payload bytes to keep for this protocol.
Trait Implementations§
Source§impl Clone for ProtocolTruncation
impl Clone for ProtocolTruncation
Source§fn clone(&self) -> ProtocolTruncation
fn clone(&self) -> ProtocolTruncation
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 moreAuto Trait Implementations§
impl Freeze for ProtocolTruncation
impl RefUnwindSafe for ProtocolTruncation
impl Send for ProtocolTruncation
impl Sync for ProtocolTruncation
impl Unpin for ProtocolTruncation
impl UnsafeUnpin for ProtocolTruncation
impl UnwindSafe for ProtocolTruncation
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