pub struct IngestionConfigEncoder { /* private fields */ }Implementations§
Source§impl IngestionConfigEncoder
impl IngestionConfigEncoder
Sourcepub async fn add_new_flows(&mut self, flow_configs: &[FlowConfig]) -> Result<()>
pub async fn add_new_flows(&mut self, flow_configs: &[FlowConfig]) -> Result<()>
Modify the existing ingestion config by adding new flows that weren’t accounted for during initialization. This will register the flows with Sift.
ErrorKind::AlreadyExistsError from any flow creation is treated as success: a
concurrent SiftStream instance may have won the race to create that flow.
Sourcepub fn get_flows(&self) -> HashMap<String, FlowDescriptor<String>>
pub fn get_flows(&self) -> HashMap<String, FlowDescriptor<String>>
Get a copy of the current flow descriptors known to SiftStream as a HashMap keyed to the flow name.
Sourcepub fn get_flow_descriptor(
&self,
flow_name: &str,
) -> Result<FlowDescriptor<String>>
pub fn get_flow_descriptor( &self, flow_name: &str, ) -> Result<FlowDescriptor<String>>
Get the flow descriptor for a given flow name.
Trait Implementations§
Source§impl Encoder for IngestionConfigEncoder
impl Encoder for IngestionConfigEncoder
Source§impl MetricsSnapshot for IngestionConfigEncoder
impl MetricsSnapshot for IngestionConfigEncoder
fn snapshot(&self) -> SiftStreamMetricsSnapshot
Auto Trait Implementations§
impl Freeze for IngestionConfigEncoder
impl !RefUnwindSafe for IngestionConfigEncoder
impl Send for IngestionConfigEncoder
impl Sync for IngestionConfigEncoder
impl Unpin for IngestionConfigEncoder
impl UnsafeUnpin for IngestionConfigEncoder
impl !UnwindSafe for IngestionConfigEncoder
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.