[−][src]Struct tempest_source_mock::MockSourceBuilder
Mock source builder for constructing a simple source for testing topologies
Methods
impl MockSourceBuilder
[src]
pub fn read_msg_count(self, count: usize) -> Self
[src]
pub fn poll_interval(self, ms: u64) -> Self
[src]
pub fn ack_policy(self, policy: SourceAckPolicy) -> Self
[src]
pub fn max_backoff(self, ms: u64) -> Self
[src]
pub fn prime(self, f: fn(mock: &mut MockSource)) -> Self
[src]
Prime takes a closure which is called to push messages into the mock source queue.
Trait Implementations
impl Default for MockSourceBuilder
[src]
fn default() -> MockSourceBuilder
[src]
impl SourceBuilder for MockSourceBuilder
[src]
type Source = MockSource
fn build(&self) -> Self::Source
[src]
fn parse_config_value(&mut self, _cfg: Value)
[src]
Auto Trait Implementations
impl Unpin for MockSourceBuilder
impl Sync for MockSourceBuilder
impl Send for MockSourceBuilder
impl UnwindSafe for MockSourceBuilder
impl RefUnwindSafe for MockSourceBuilder
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,