pub struct ApplicationBootstrapProviderBuilder { /* private fields */ }Expand description
Builder for ApplicationBootstrapProvider
§Example
use drasi_bootstrap_application::ApplicationBootstrapProvider;
// Create with isolated storage
let provider = ApplicationBootstrapProvider::builder().build();
// Create with shared storage
use std::sync::Arc;
use tokio::sync::RwLock;
use drasi_core::models::SourceChange;
let shared_data = Arc::new(RwLock::new(Vec::<SourceChange>::new()));
let provider = ApplicationBootstrapProvider::builder()
.with_shared_data(shared_data)
.build();Implementations§
Source§impl ApplicationBootstrapProviderBuilder
impl ApplicationBootstrapProviderBuilder
Set shared bootstrap data
Use this when you want the provider to share bootstrap data with an ApplicationSource.
Sourcepub fn build(self) -> ApplicationBootstrapProvider
pub fn build(self) -> ApplicationBootstrapProvider
Build the ApplicationBootstrapProvider
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApplicationBootstrapProviderBuilder
impl !RefUnwindSafe for ApplicationBootstrapProviderBuilder
impl Send for ApplicationBootstrapProviderBuilder
impl Sync for ApplicationBootstrapProviderBuilder
impl Unpin for ApplicationBootstrapProviderBuilder
impl !UnwindSafe for ApplicationBootstrapProviderBuilder
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