Struct connection_utils::test::TestOptions
source · [−]pub struct TestOptions { /* private fields */ }Expand description
Options for test_framed_stream/test_async_stream utilities.
Implementations
sourceimpl 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
sourceimpl Clone for TestOptions
impl Clone for TestOptions
sourcefn clone(&self) -> TestOptions
fn clone(&self) -> TestOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for TestOptions
impl Debug for TestOptions
sourceimpl Default for TestOptions
impl Default for TestOptions
sourcefn default() -> TestOptions
fn default() -> TestOptions
Returns the “default value” for a type. Read more
sourceimpl Random for TestOptions
impl Random for TestOptions
fn random() -> TestOptions
Auto Trait Implementations
impl RefUnwindSafe for TestOptions
impl Send for TestOptions
impl Sync for TestOptions
impl Unpin for TestOptions
impl UnwindSafe for TestOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more