[−][src]Struct buffer_trigger::buffer_trigger_sync::SimpleBuilder
Implementations
impl<E, C> Builder<E, C> where
E: Debug,
C: Debug,
[src]
E: Debug,
C: Debug,
pub fn builder(defalut_container: fn() -> C) -> Self
[src]
init
#[must_use]pub fn name(self, name: String) -> Self
[src]
set name
pub fn accumulator(self, accumulator: fn(_: &mut C, _: E)) -> Self
[src]
set accumulator
pub fn consumer(self, consumer: fn(_: C)) -> Self
[src]
set consumer
#[must_use]pub fn max_len(self, max_len: usize) -> Self
[src]
set max_len
#[must_use]pub fn interval(self, interval: Duration) -> Self
[src]
set interval
#[must_use]pub fn build(self) -> Simple<E, C>
[src]
build
Trait Implementations
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
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>,