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 stream_to_file(self, file_path: impl Into<PathBuf>) -> Self#
pub fn with_file_fallback(self, file_path: impl Into<PathBuf>) -> Self#
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_build returns an error.

pub fn try_build(self) -> Result<NominalDatasetStream, StreamBuildError>#

Validates the configuration and starts the stream.

The stream_to_file file is created here, replacing any existing file. The with_file_fallback file 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.avro becomes fallback_20260101_120000.avro.

Trait implementations#

impl Debug for NominalDatasetStreamBuilder
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Derived: Default

Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe