Struct batch_system::batch::Poller[][src]

struct Poller<N: Fsm, C: Fsm, Handler> {
    router: Router<N, C, NormalScheduler<N, C>, ControlScheduler<N, C>>,
    fsm_receiver: Receiver<FsmTypes<N, C>>,
    handler: Handler,
    max_batch_size: usize,
    reschedule_duration: Duration,
}

Internal poller that fetches batch and call handler hooks for readiness.

Fields

router: Router<N, C, NormalScheduler<N, C>, ControlScheduler<N, C>>fsm_receiver: Receiver<FsmTypes<N, C>>handler: Handlermax_batch_size: usizereschedule_duration: Duration

Implementations

impl<N: Fsm, C: Fsm, Handler: PollHandler<N, C>> Poller<N, C, Handler>[src]

fn fetch_fsm(&mut self, batch: &mut Batch<N, C>) -> bool[src]

fn poll(&mut self)[src]

Auto Trait Implementations

impl<N, C, Handler> !RefUnwindSafe for Poller<N, C, Handler>

impl<N, C, Handler> Send for Poller<N, C, Handler> where
    C: Send,
    Handler: Send,
    N: Send

impl<N, C, Handler> !Sync for Poller<N, C, Handler>

impl<N, C, Handler> Unpin for Poller<N, C, Handler> where
    Handler: Unpin

impl<N, C, Handler> UnwindSafe for Poller<N, C, Handler> where
    Handler: UnwindSafe

Blanket Implementations

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

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

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

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[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<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]