Struct netperf::common::data::TestParameters
source · pub struct TestParameters {
pub direction: Direction,
pub omit_seconds: u32,
pub time_seconds: u64,
pub parallel: u16,
pub block_size: usize,
pub client_version: String,
pub no_delay: bool,
pub socket_buffers: Option<usize>,
}Fields§
§direction: Direction§omit_seconds: u32omit the first n seconds.
time_seconds: u64§parallel: u16§block_size: usize§client_version: String§no_delay: bool§socket_buffers: Option<usize>Implementations§
source§impl TestParameters
impl TestParameters
pub fn from_opts(opts: &ClientOpts, default_block_size: usize) -> Self
Trait Implementations§
source§impl Clone for TestParameters
impl Clone for TestParameters
source§fn clone(&self) -> TestParameters
fn clone(&self) -> TestParameters
Returns a copy 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 TestParameters
impl Debug for TestParameters
source§impl<'de> Deserialize<'de> for TestParameters
impl<'de> Deserialize<'de> for TestParameters
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 PartialEq<TestParameters> for TestParameters
impl PartialEq<TestParameters> for TestParameters
source§fn eq(&self, other: &TestParameters) -> bool
fn eq(&self, other: &TestParameters) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for TestParameters
impl Serialize for TestParameters
impl Eq for TestParameters
impl StructuralEq for TestParameters
impl StructuralPartialEq for TestParameters
Auto Trait Implementations§
impl RefUnwindSafe for TestParameters
impl Send for TestParameters
impl Sync for TestParameters
impl Unpin for TestParameters
impl UnwindSafe for TestParameters
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