pub struct DriverConfig {
pub payload_byte_limit: usize,
pub datagram_count: usize,
}Expand description
Config a load generator reads to shape its output to this timeline’s SUT.
first_sample_config samples it beside datadog.yaml from one draw, so the
generator and the SUT are driven together.
Fields§
§payload_byte_limit: usizeMax bytes a generator packs into one datagram, the smaller of the SUT’s
sampled receive buffer and PAYLOAD_BYTE_LIMIT. A datagram this size
fits one read, so the SUT never truncates a line mid-token.
datagram_count: usizeDatagrams a driver invocation ships this timeline.
Implementations§
Trait Implementations§
Source§impl Clone for DriverConfig
impl Clone for DriverConfig
Source§fn clone(&self) -> DriverConfig
fn clone(&self) -> DriverConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 DriverConfig
impl Debug for DriverConfig
Source§impl<'de> Deserialize<'de> for DriverConfig
impl<'de> Deserialize<'de> for DriverConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DriverConfig
impl Serialize for DriverConfig
impl Copy for DriverConfig
Auto Trait Implementations§
impl Freeze for DriverConfig
impl RefUnwindSafe for DriverConfig
impl Send for DriverConfig
impl Sync for DriverConfig
impl Unpin for DriverConfig
impl UnwindSafe for DriverConfig
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