Struct connection_utils::mocks::ChannelMockOptions
source · [−]pub struct ChannelMockOptions { /* private fields */ }Implementations
sourceimpl ChannelMockOptions
impl ChannelMockOptions
pub fn with_id(self, id: u16) -> ChannelMockOptions
pub fn with_label(self, label: impl AsRef<str> + ToString) -> ChannelMockOptions
pub fn with_latency(
self,
latency_range: RangeInclusive<u64>
) -> ChannelMockOptions
Trait Implementations
sourceimpl Clone for ChannelMockOptions
impl Clone for ChannelMockOptions
sourcefn clone(&self) -> ChannelMockOptions
fn clone(&self) -> ChannelMockOptions
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 ChannelMockOptions
impl Debug for ChannelMockOptions
sourceimpl Default for ChannelMockOptions
impl Default for ChannelMockOptions
sourcefn default() -> ChannelMockOptions
fn default() -> ChannelMockOptions
Returns the “default value” for a type. Read more
sourceimpl PartialEq<ChannelMockOptions> for ChannelMockOptions
impl PartialEq<ChannelMockOptions> for ChannelMockOptions
sourcefn eq(&self, other: &ChannelMockOptions) -> bool
fn eq(&self, other: &ChannelMockOptions) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourceimpl Random for ChannelMockOptions
impl Random for ChannelMockOptions
impl StructuralPartialEq for ChannelMockOptions
Auto Trait Implementations
impl RefUnwindSafe for ChannelMockOptions
impl Send for ChannelMockOptions
impl Sync for ChannelMockOptions
impl Unpin for ChannelMockOptions
impl UnwindSafe for ChannelMockOptions
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