pub struct NetworkFacadeBuilder { /* private fields */ }Expand description
Builder for NetworkFacade
Implementations§
Source§impl NetworkFacadeBuilder
impl NetworkFacadeBuilder
Sourcepub fn with_preset(self, preset: NetworkPreset) -> Self
pub fn with_preset(self, preset: NetworkPreset) -> Self
Use a preset configuration
Sourcepub fn with_preset_mobile(self) -> Self
pub fn with_preset_mobile(self) -> Self
Use mobile preset
Sourcepub fn with_preset_iot(self) -> Self
pub fn with_preset_iot(self) -> Self
Use IoT preset
Sourcepub fn with_preset_low_memory(self) -> Self
pub fn with_preset_low_memory(self) -> Self
Use low-memory preset
Sourcepub fn with_preset_high_performance(self) -> Self
pub fn with_preset_high_performance(self) -> Self
Use high-performance preset
Sourcepub fn with_preset_privacy(self) -> Self
pub fn with_preset_privacy(self) -> Self
Use privacy preset
Sourcepub fn with_config(self, config: NetworkConfig) -> Self
pub fn with_config(self, config: NetworkConfig) -> Self
Set custom network configuration
Sourcepub fn with_semantic_dht(self) -> Self
pub fn with_semantic_dht(self) -> Self
Enable semantic DHT
Sourcepub fn with_semantic_dht_config(self, config: SemanticDhtConfig) -> Self
pub fn with_semantic_dht_config(self, config: SemanticDhtConfig) -> Self
Enable semantic DHT with custom config
Sourcepub fn with_gossipsub(self) -> Self
pub fn with_gossipsub(self) -> Self
Enable GossipSub
Sourcepub fn with_gossipsub_config(self, config: GossipSubConfig) -> Self
pub fn with_gossipsub_config(self, config: GossipSubConfig) -> Self
Enable GossipSub with custom config
Sourcepub fn with_geo_routing(self) -> Self
pub fn with_geo_routing(self) -> Self
Enable geographic routing
Sourcepub fn with_geo_routing_config(self, config: GeoRouterConfig) -> Self
pub fn with_geo_routing_config(self, config: GeoRouterConfig) -> Self
Enable geographic routing with custom config
Sourcepub fn with_quality_predictor(self) -> Self
pub fn with_quality_predictor(self) -> Self
Enable quality prediction
Sourcepub fn with_quality_predictor_config(
self,
config: QualityPredictorConfig,
) -> Self
pub fn with_quality_predictor_config( self, config: QualityPredictorConfig, ) -> Self
Enable quality prediction with custom config
Sourcepub fn with_peer_selector(self) -> Self
pub fn with_peer_selector(self) -> Self
Enable intelligent peer selection
Sourcepub fn with_peer_selector_config(self, config: PeerSelectorConfig) -> Self
pub fn with_peer_selector_config(self, config: PeerSelectorConfig) -> Self
Enable intelligent peer selection with custom config
Sourcepub fn with_multipath_quic(self) -> Self
pub fn with_multipath_quic(self) -> Self
Enable multipath QUIC
Sourcepub fn with_multipath_quic_config(self, config: MultipathConfig) -> Self
pub fn with_multipath_quic_config(self, config: MultipathConfig) -> Self
Enable multipath QUIC with custom config
Sourcepub fn with_tor_config(self, config: TorConfig) -> Self
pub fn with_tor_config(self, config: TorConfig) -> Self
Enable Tor with custom config
Sourcepub fn with_bandwidth_throttle(self) -> Self
pub fn with_bandwidth_throttle(self) -> Self
Enable bandwidth throttling
Sourcepub fn with_bandwidth_throttle_config(self, config: ThrottleConfig) -> Self
pub fn with_bandwidth_throttle_config(self, config: ThrottleConfig) -> Self
Enable bandwidth throttling with custom config
Sourcepub fn with_adaptive_polling(self) -> Self
pub fn with_adaptive_polling(self) -> Self
Enable adaptive polling
Sourcepub fn with_adaptive_polling_config(self, config: AdaptivePollingConfig) -> Self
pub fn with_adaptive_polling_config(self, config: AdaptivePollingConfig) -> Self
Enable adaptive polling with custom config
Sourcepub fn with_background_mode(self) -> Self
pub fn with_background_mode(self) -> Self
Enable background mode
Sourcepub fn with_background_mode_config(self, config: BackgroundModeConfig) -> Self
pub fn with_background_mode_config(self, config: BackgroundModeConfig) -> Self
Enable background mode with custom config
Sourcepub fn with_offline_queue(self) -> Self
pub fn with_offline_queue(self) -> Self
Enable offline queue
Sourcepub fn with_offline_queue_config(self, config: OfflineQueueConfig) -> Self
pub fn with_offline_queue_config(self, config: OfflineQueueConfig) -> Self
Enable offline queue with custom config
Sourcepub fn with_memory_monitor(self) -> Self
pub fn with_memory_monitor(self) -> Self
Enable memory monitoring
Sourcepub fn with_memory_monitor_config(self, config: MemoryMonitorConfig) -> Self
pub fn with_memory_monitor_config(self, config: MemoryMonitorConfig) -> Self
Enable memory monitoring with custom config
Sourcepub fn with_network_monitor(self) -> Self
pub fn with_network_monitor(self) -> Self
Enable network monitoring
Sourcepub fn with_network_monitor_config(self, config: NetworkMonitorConfig) -> Self
pub fn with_network_monitor_config(self, config: NetworkMonitorConfig) -> Self
Enable network monitoring with custom config
Sourcepub fn with_query_batcher(self) -> Self
pub fn with_query_batcher(self) -> Self
Enable query batching
Sourcepub fn with_query_batcher_config(self, config: QueryBatcherConfig) -> Self
pub fn with_query_batcher_config(self, config: QueryBatcherConfig) -> Self
Enable query batching with custom config
Sourcepub fn build(self) -> Result<NetworkFacade>
pub fn build(self) -> Result<NetworkFacade>
Build the network facade
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NetworkFacadeBuilder
impl RefUnwindSafe for NetworkFacadeBuilder
impl Send for NetworkFacadeBuilder
impl Sync for NetworkFacadeBuilder
impl Unpin for NetworkFacadeBuilder
impl UnwindSafe for NetworkFacadeBuilder
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
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>
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>
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