pub enum TransportConfig {
Show 27 variants
FileInput(FileInputConfig),
FileOutput(FileOutputConfig),
NatsInput(Box<NatsInputConfig>),
NatsOutput(NatsOutputConfig),
KafkaInput(KafkaInputConfig),
KafkaOutput(KafkaOutputConfig),
PubSubInput(PubSubInputConfig),
UrlInput(UrlInputConfig),
S3Input(S3InputConfig),
DeltaTableInput(DeltaTableReaderConfig),
DeltaTableOutput(DeltaTableWriterConfig),
DynamoDBOutput(DynamoDBWriterConfig),
RedisOutput(RedisOutputConfig),
IcebergInput(Box<IcebergReaderConfig>),
PostgresInput(PostgresReaderConfig),
PostgresCdcInput(PostgresCdcReaderConfig),
PostgresOutput(PostgresWriterConfig),
Datagen(DatagenInputConfig),
Nexmark(NexmarkInputConfig),
HttpInput(HttpInputConfig),
HttpOutput(HttpOutputConfig),
AdHocInput(AdHocInputConfig),
ClockInput(ClockConfig),
S2Input(S2InputConfig),
S2Output(S2OutputConfig),
NullOutput,
EmptyInput,
}Expand description
Transport-specific endpoint configuration passed to
crate::OutputTransport::new_endpoint
and crate::InputTransport::new_endpoint.
Variants§
FileInput(FileInputConfig)
FileOutput(FileOutputConfig)
NatsInput(Box<NatsInputConfig>)
NatsOutput(NatsOutputConfig)
KafkaInput(KafkaInputConfig)
KafkaOutput(KafkaOutputConfig)
PubSubInput(PubSubInputConfig)
UrlInput(UrlInputConfig)
S3Input(S3InputConfig)
DeltaTableInput(DeltaTableReaderConfig)
DeltaTableOutput(DeltaTableWriterConfig)
DynamoDBOutput(DynamoDBWriterConfig)
RedisOutput(RedisOutputConfig)
IcebergInput(Box<IcebergReaderConfig>)
PostgresInput(PostgresReaderConfig)
PostgresCdcInput(PostgresCdcReaderConfig)
PostgresOutput(PostgresWriterConfig)
Datagen(DatagenInputConfig)
Nexmark(NexmarkInputConfig)
HttpInput(HttpInputConfig)
Direct HTTP input: cannot be instantiated through API
HttpOutput(HttpOutputConfig)
Direct HTTP output: cannot be instantiated through API
AdHocInput(AdHocInputConfig)
Ad hoc input: cannot be instantiated through API
ClockInput(ClockConfig)
S2Input(S2InputConfig)
S2Output(S2OutputConfig)
NullOutput
Output connector that discards all data.
EmptyInput
Input connector that produces no data.
Implementations§
Source§impl TransportConfig
impl TransportConfig
Sourcepub fn local_file_uris(&self, resolved: bool) -> Vec<(&'static str, &str)>
pub fn local_file_uris(&self, resolved: bool) -> Vec<(&'static str, &str)>
The local paths of a Delta Lake or Iceberg connector, as (property, value) pairs.
Before references are resolved, skips them. After, checks every value, because a
resolved value can look like a reference.
Sourcepub fn normalize_durations(&mut self)
pub fn normalize_durations(&mut self)
Writes each of the transport’s duration settings out as the value in
effect; see ConnectorConfig::normalize_durations.
pub fn name(&self) -> String
Sourcepub fn transport_metadata_mut(&mut self) -> Option<&mut HashMap<String, String>>
pub fn transport_metadata_mut(&mut self) -> Option<&mut HashMap<String, String>>
Returns a mutable reference to the transport’s metadata map, if the transport supports arbitrary key-value metadata (e.g., NATS consumer metadata). The controller uses this to inject pipeline identity into transport-level metadata without transport-specific knowledge.
Sourcepub fn is_transient(&self) -> bool
pub fn is_transient(&self) -> bool
Returns true if the connector is transient, i.e., is created and destroyed at runtime on demand, rather than being configured as part of the pipeline.
pub fn is_http_input(&self) -> bool
Sourcepub fn supports_distribution(&self) -> bool
pub fn supports_distribution(&self) -> bool
Returns true if an input connector with this transport can divide its
input among the hosts of a multihost pipeline (see
ConnectorConfig::distributed).
Sourcepub fn needs_input_choice(&self) -> bool
pub fn needs_input_choice(&self) -> bool
Returns true if host 0 of a distributed input connector with this transport must choose a value for all of the hosts before they read any input.
For example, the hosts of a Delta Lake connector must read the snapshot at the same table version, and the hosts of an Iceberg connector at the same snapshot ID, or they could lose or duplicate records. Host 0 chooses the value, and the coordinator passes it to the other hosts in CoordinationActivate::input_choices.
Sourcepub fn frontier_merge(&self) -> FrontierMerge
pub fn frontier_merge(&self) -> FrontierMerge
Returns how to combine the completed frontiers’ metadata that the hosts of a distributed input connector with this transport report.
Trait Implementations§
Source§impl Clone for TransportConfig
impl Clone for TransportConfig
Source§impl Debug for TransportConfig
impl Debug for TransportConfig
Source§impl<'de> Deserialize<'de> for TransportConfig
impl<'de> Deserialize<'de> for TransportConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for TransportConfig
Source§impl PartialEq for TransportConfig
impl PartialEq for TransportConfig
Source§impl Serialize for TransportConfig
impl Serialize for TransportConfig
impl StructuralPartialEq for TransportConfig
Auto Trait Implementations§
impl Freeze for TransportConfig
impl RefUnwindSafe for TransportConfig
impl Send for TransportConfig
impl Sync for TransportConfig
impl Unpin for TransportConfig
impl UnsafeUnpin for TransportConfig
impl UnwindSafe for TransportConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more