[][src]Struct buffer_trigger::SimpleBufferTriggerBuilder

pub struct SimpleBufferTriggerBuilder<E, C> where
    E: Debug
{ /* fields omitted */ }

simple buffer trigger builer

Implementations

impl<E, C> Builder<E, C> where
    E: Debug,
    C: Debug
[src]

pub fn builder() -> Self[src]

init

pub fn name(self, name: String) -> Self[src]

set name

pub fn default_container(self, defalut_container: fn() -> C) -> Self[src]

set default_container

pub fn accumulator(self, accumulator: fn(_: &mut C, _: E)) -> Self[src]

set accumulator

pub fn consumer(self, consumer: fn(_: C)) -> Self[src]

set consumer

pub fn max_len(self, max_len: usize) -> Self[src]

set max_len

pub fn interval(self, interval: Duration) -> Self[src]

set interval

pub fn build(self) -> SimpleBufferTrigger<E, C>[src]

build

Trait Implementations

impl<E, C> Debug for Builder<E, C> where
    E: Debug,
    C: Debug
[src]

Auto Trait Implementations

impl<E, C> RefUnwindSafe for Builder<E, C>

impl<E, C> Send for Builder<E, C>

impl<E, C> Sync for Builder<E, C>

impl<E, C> Unpin for Builder<E, C>

impl<E, C> UnwindSafe for Builder<E, C>

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, U> Into<U> for T where
    U: From<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.