[][src]Struct tempest_source_mock::MockSourceBuilder

pub struct MockSourceBuilder { /* fields omitted */ }

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]

impl SourceBuilder for MockSourceBuilder[src]

type Source = MockSource

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]