pub struct FlowBuilder<'a, K> { /* private fields */ }Expand description
Builder to assist in constructing a flow, utilizing the flow descriptor to ensure that the flow is constructed correctly (i.e. value in the correct order and the correct data type).
By using the builder and the flow descriptor, the channel names are not necessary, which helps improve performance.
Implementations§
Source§impl<K> FlowBuilder<'_, K>
impl<K> FlowBuilder<'_, K>
Sourcepub fn request(self, now: TimeValue) -> IngestWithConfigDataStreamRequest
pub fn request(self, now: TimeValue) -> IngestWithConfigDataStreamRequest
Builds an IngestWithConfigDataStreamRequest, consuming the builder.
Source§impl<'a, K> FlowBuilder<'a, K>
impl<'a, K> FlowBuilder<'a, K>
Sourcepub fn new(flow_descriptor: &'a FlowDescriptor<K>) -> Self
pub fn new(flow_descriptor: &'a FlowDescriptor<K>) -> Self
Initializes a new flow builder with the provided flow descriptor.
Sourcepub fn attach_run_id(&mut self, run_id: impl Into<String>)
pub fn attach_run_id(&mut self, run_id: impl Into<String>)
Attaches a run ID to the flow.
Sourcepub fn set<V>(&mut self, index: ChannelIndex, value: V) -> Result<()>
pub fn set<V>(&mut self, index: ChannelIndex, value: V) -> Result<()>
Sets the value of the channel with the given key.
Trait Implementations§
Auto Trait Implementations§
impl<'a, K> Freeze for FlowBuilder<'a, K>
impl<'a, K> RefUnwindSafe for FlowBuilder<'a, K>where
K: RefUnwindSafe,
impl<'a, K> Send for FlowBuilder<'a, K>where
K: Sync,
impl<'a, K> Sync for FlowBuilder<'a, K>where
K: Sync,
impl<'a, K> Unpin for FlowBuilder<'a, K>
impl<'a, K> UnsafeUnpin for FlowBuilder<'a, K>
impl<'a, K> UnwindSafe for FlowBuilder<'a, K>where
K: RefUnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> RetryExt for T
impl<T> RetryExt for T
Source§fn retrying(self, cfg: RetryConfig) -> Retrying<Self>
fn retrying(self, cfg: RetryConfig) -> Retrying<Self>
Wraps
self in a Retrying adapter with the given configuration.