pub struct TestOptions { /* private fields */ }
Expand description
Options for test_framed_stream
/test_async_stream
utilities.
Implementations§
Source§impl TestOptions
impl TestOptions
Sourcepub fn with_latency(self, latency_range: RangeInclusive<u64>) -> TestOptions
pub fn with_latency(self, latency_range: RangeInclusive<u64>) -> TestOptions
Sets the latency_range
value.
Sourcepub fn with_data_len(self, items_count: usize) -> TestOptions
pub fn with_data_len(self, items_count: usize) -> TestOptions
Sets the data_len
value.
Sourcepub fn latency_range(&self) -> RangeInclusive<u64>
pub fn latency_range(&self) -> RangeInclusive<u64>
Gets the latency_range
value.
Trait Implementations§
Source§impl Clone for TestOptions
impl Clone for TestOptions
Source§fn clone(&self) -> TestOptions
fn clone(&self) -> TestOptions
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 TestOptions
impl Debug for TestOptions
Source§impl Default for TestOptions
impl Default for TestOptions
Source§fn default() -> TestOptions
fn default() -> TestOptions
Returns the “default value” for a type. Read more
Source§impl Random for TestOptions
impl Random for TestOptions
fn random() -> TestOptions
Auto Trait Implementations§
impl Freeze for TestOptions
impl RefUnwindSafe for TestOptions
impl Send for TestOptions
impl Sync for TestOptions
impl Unpin for TestOptions
impl UnwindSafe for TestOptions
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