NominalDatasetStreamBuilder#
- pub struct NominalDatasetStreamBuilder#
Implementations#
- impl NominalDatasetStreamBuilder
- pub fn new() -> Self#
- impl NominalDatasetStreamBuilder
- pub fn stream_to_core(self, bearer_token: BearerToken, dataset: ResourceIdentifier, handle: Handle) -> NominalDatasetStreamBuilder#
- pub fn add_listener(self, listener: Arc<dyn NominalStreamListener>) -> Self#
- pub fn with_listeners(self, listeners: Vec<Arc<dyn NominalStreamListener>>) -> Self#
- pub fn with_options(self, opts: NominalStreamOpts) -> Self#
- pub fn enable_logging(self) -> Self#
- pub fn enable_logging_with_directive(self, log_directive: &str) -> Self#
- pub fn build(self) -> NominalDatasetStream#
Validates the configuration and starts the stream.
Panics
Panics where
Self::try_buildreturns an error.
- pub fn try_build(self) -> Result<NominalDatasetStream, StreamBuildError>#
Validates the configuration and starts the stream.
The
stream_to_filefile is created here, replacing any existing file. Thewith_file_fallbackfile is created when a request first fails, and is named after the given path with the stream’s start time (UTC) appended to the file name:fallback.avrobecomesfallback_20260101_120000.avro.
Trait implementations#
- impl Debug for NominalDatasetStreamBuilder
Derived: Default
Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe