pub struct PlatformBootstrapProvider { /* private fields */ }Expand description
Platform bootstrap provider that connects to Query API service
Implementations§
Source§impl PlatformBootstrapProvider
impl PlatformBootstrapProvider
Sourcepub fn new(config: PlatformBootstrapConfig) -> Result<Self>
pub fn new(config: PlatformBootstrapConfig) -> Result<Self>
Sourcepub fn with_url(
query_api_url: impl Into<String>,
timeout_seconds: u64,
) -> Result<Self>
pub fn with_url( query_api_url: impl Into<String>, timeout_seconds: u64, ) -> Result<Self>
Create a new platform bootstrap provider with explicit parameters
§Arguments
query_api_url- Base URL of the Query API service (e.g., “http://my-source-query-api:8080”)timeout_seconds- Timeout for HTTP requests in seconds
§Returns
Returns a new instance of PlatformBootstrapProvider or an error if the URL is invalid
Sourcepub fn builder() -> PlatformBootstrapProviderBuilder
pub fn builder() -> PlatformBootstrapProviderBuilder
Create a builder for PlatformBootstrapProvider
Trait Implementations§
Source§impl BootstrapProvider for PlatformBootstrapProvider
impl BootstrapProvider for PlatformBootstrapProvider
Source§fn bootstrap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: BootstrapRequest,
context: &'life1 BootstrapContext,
event_tx: BootstrapEventSender,
_settings: Option<&'life2 SourceSubscriptionSettings>,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn bootstrap<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
request: BootstrapRequest,
context: &'life1 BootstrapContext,
event_tx: BootstrapEventSender,
_settings: Option<&'life2 SourceSubscriptionSettings>,
) -> Pin<Box<dyn Future<Output = Result<usize>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Perform bootstrap operation for the given request
Sends bootstrap events to the provided channel
Returns the number of elements sent Read more
Auto Trait Implementations§
impl Freeze for PlatformBootstrapProvider
impl !RefUnwindSafe for PlatformBootstrapProvider
impl Send for PlatformBootstrapProvider
impl Sync for PlatformBootstrapProvider
impl Unpin for PlatformBootstrapProvider
impl UnsafeUnpin for PlatformBootstrapProvider
impl !UnwindSafe for PlatformBootstrapProvider
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