Struct apollo_client::conf::ApolloConfClientBuilder
source · [−]pub struct ApolloConfClientBuilder { /* private fields */ }This is supported on crate feature
conf only.Expand description
Builder for ApolloConfClient.
Implementations
Create a client request api via config service.
Example
use apollo_client::conf::ApolloConfClientBuilder;
use url::Url;
let _builder = ApolloConfClientBuilder::new_via_config_service(
Url::parse("http://localhost:8080").unwrap(),
)
.unwrap();Customize inner http client.
Example
use apollo_client::conf::ApolloConfClientBuilder;
use std::time::Duration;
use url::Url;
ApolloConfClientBuilder::new_via_config_service(Url::parse("http://localhost:8080").unwrap())
.unwrap()
.with_client_builder(|builder| builder.timeout(Duration::from_secs(6)));Build the ApolloConfClient.
Auto Trait Implementations
impl !RefUnwindSafe for ApolloConfClientBuilder
impl Send for ApolloConfClientBuilder
impl Sync for ApolloConfClientBuilder
impl Unpin for ApolloConfClientBuilder
impl !UnwindSafe for ApolloConfClientBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more