Skip to main content

JoinBuilder

Struct JoinBuilder 

Source
pub struct JoinBuilder<O, R: Spawn + 'static> { /* private fields */ }
Expand description

Type-erased input descriptor for joins.

Each input captures a subscribe-and-forward function that, given the AimDb handle, subscribes to the input buffer and forwards typed values as JoinTrigger into a shared mpsc::UnboundedSender.

Configures a multi-input join transform.

Created by RecordRegistrar::transform_join_raw(). Add inputs with .input(), then set state and handler with .with_state().on_trigger().

Implementations§

Source§

impl<O, R> JoinBuilder<O, R>
where O: Send + Sync + Clone + Debug + 'static, R: Spawn + 'static,

Source

pub fn input<I>(self, key: impl RecordKey) -> Self
where I: Send + Sync + Clone + Debug + 'static,

Add a typed input to the join.

The input index corresponds to the order of .input() calls, starting from 0.

Source

pub fn with_state<S: Send + Sync + 'static>( self, initial: S, ) -> JoinStateBuilder<O, S, R>

Set the join state and begin configuring the trigger handler.

Auto Trait Implementations§

§

impl<O, R> Freeze for JoinBuilder<O, R>

§

impl<O, R> !RefUnwindSafe for JoinBuilder<O, R>

§

impl<O, R> Send for JoinBuilder<O, R>
where O: Send,

§

impl<O, R> Sync for JoinBuilder<O, R>
where O: Sync,

§

impl<O, R> Unpin for JoinBuilder<O, R>
where O: Unpin, R: Unpin,

§

impl<O, R> UnsafeUnpin for JoinBuilder<O, R>

§

impl<O, R> !UnwindSafe for JoinBuilder<O, R>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.