pub struct FDv2StreamingBuilder<T: HttpTransport = HyperTransport> { /* private fields */ }Expand description
Configures an FDv2 streaming source, which can only act as a synchronizer.
Implementations§
Source§impl<T: HttpTransport + Clone + Send + Sync + 'static> FDv2StreamingBuilder<T>
impl<T: HttpTransport + Clone + Send + Sync + 'static> FDv2StreamingBuilder<T>
Sourcepub fn initial_reconnect_delay(&mut self, duration: Duration) -> &mut Self
pub fn initial_reconnect_delay(&mut self, duration: Duration) -> &mut Self
Sets the initial reconnect delay for the streaming connection.
§Examples
let mut source = FDv2StreamingBuilder::<HyperTransport>::new();
source.initial_reconnect_delay(Duration::from_secs(10));Trait Implementations§
Source§impl<T: Clone + HttpTransport> Clone for FDv2StreamingBuilder<T>
impl<T: Clone + HttpTransport> Clone for FDv2StreamingBuilder<T>
Source§fn clone(&self) -> FDv2StreamingBuilder<T>
fn clone(&self) -> FDv2StreamingBuilder<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T: HttpTransport + Clone + Send + Sync + 'static> Default for FDv2StreamingBuilder<T>
impl<T: HttpTransport + Clone + Send + Sync + 'static> Default for FDv2StreamingBuilder<T>
Source§impl<T: HttpTransport + Clone + Send + Sync + 'static> FDv2SynchronizerConfig for FDv2StreamingBuilder<T>
impl<T: HttpTransport + Clone + Send + Sync + 'static> FDv2SynchronizerConfig for FDv2StreamingBuilder<T>
Source§fn build_synchronizer(
&self,
context: &DataSourceBuildContext<'_>,
) -> Result<Box<dyn SynchronizerFactory>, BuildError>
fn build_synchronizer( &self, context: &DataSourceBuildContext<'_>, ) -> Result<Box<dyn SynchronizerFactory>, BuildError>
Builds a synchronizer factory from this configuration.
Source§fn to_owned(&self) -> Box<dyn FDv2SynchronizerConfig>
fn to_owned(&self) -> Box<dyn FDv2SynchronizerConfig>
Clones this configuration into a new box.
Auto Trait Implementations§
impl<T> Freeze for FDv2StreamingBuilder<T>
impl<T> RefUnwindSafe for FDv2StreamingBuilder<T>where
Option<T>: RefUnwindSafe,
impl<T> Send for FDv2StreamingBuilder<T>
impl<T> Sync for FDv2StreamingBuilder<T>
impl<T> Unpin for FDv2StreamingBuilder<T>
impl<T> UnsafeUnpin for FDv2StreamingBuilder<T>where
Option<T>: UnsafeUnpin,
impl<T> UnwindSafe for FDv2StreamingBuilder<T>where
Option<T>: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> ⓘ
Converts
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> ⓘ
Converts
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