[−][src]Struct buffer_trigger::buffer_trigger_async::GeneralBuilder
general buffer trigger builer
Implementations
impl<E, C, P> Builder<E, C, P> where
P: Debug + Sync + Send,
E: Debug + Sync + Send,
C: Debug + Sync + Send,
[src]
P: Debug + Sync + Send,
E: Debug + Sync + Send,
C: Debug + Sync + Send,
#[must_use]pub fn builder() -> Self
[src]
init
pub fn name(self, name: String) -> Self
[src]
set name
pub fn get_len(self, get_len: fn(_: &Option<P>) -> usize) -> Self
[src]
set get_len
pub fn incr_len(self, incr_len: fn(_: &mut Option<P>)) -> Self
[src]
set incr_len
pub fn clear_len(self, clear_len: fn(_: &mut Option<P>)) -> Self
[src]
set incr_len
pub fn get_container(
self,
get_container: fn(_: &mut Option<P>) -> &mut C
) -> Self
[src]
self,
get_container: fn(_: &mut Option<P>) -> &mut C
) -> Self
set get_container
pub fn get_and_clear_container(
self,
get_and_clear_container: fn(_: &mut Option<P>) -> C
) -> Self
[src]
self,
get_and_clear_container: fn(_: &mut Option<P>) -> C
) -> Self
set get_and_clear_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 payload(self, payload: P) -> Self
[src]
set interval
pub fn build(self) -> Outer<General<E, C, P>>
[src]
build
Trait Implementations
impl<E, C, P> Debug for Builder<E, C, P> where
P: Debug + Sync + Send,
E: Debug + Sync + Send,
C: Debug + Sync + Send,
[src]
P: Debug + Sync + Send,
E: Debug + Sync + Send,
C: Debug + Sync + Send,
Auto Trait Implementations
impl<E, C, P> RefUnwindSafe for Builder<E, C, P> where
P: RefUnwindSafe,
[src]
P: RefUnwindSafe,
impl<E, C, P> Send for Builder<E, C, P> where
P: Send,
[src]
P: Send,
impl<E, C, P> Sync for Builder<E, C, P> where
P: Sync,
[src]
P: Sync,
impl<E, C, P> Unpin for Builder<E, C, P> where
P: Unpin,
[src]
P: Unpin,
impl<E, C, P> UnwindSafe for Builder<E, C, P> where
P: UnwindSafe,
[src]
P: UnwindSafe,
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,
pub 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.
pub 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>,