#[non_exhaustive]pub struct AgentConfig {Show 13 fields
pub nonce_factory: Arc<dyn NonceGenerator>,
pub identity: Arc<dyn Identity>,
pub ingress_expiry: Duration,
pub client: Option<Client>,
pub route_provider: Option<Arc<dyn RouteProvider>>,
pub verify_query_signatures: bool,
pub max_concurrent_requests: usize,
pub max_response_body_size: Option<usize>,
pub max_tcp_error_retries: usize,
pub http_service: Option<Arc<dyn HttpService>>,
pub max_polling_time: Duration,
pub background_dynamic_routing: bool,
pub url: Option<Url>,
}
Expand description
A configuration for an agent.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.nonce_factory: Arc<dyn NonceGenerator>
See with_nonce_factory
.
identity: Arc<dyn Identity>
See with_identity
.
ingress_expiry: Duration
See with_ingress_expiry
.
client: Option<Client>
See with_http_client
.
route_provider: Option<Arc<dyn RouteProvider>>
See with_route_provider
.
verify_query_signatures: bool
§max_concurrent_requests: usize
§max_response_body_size: Option<usize>
§max_tcp_error_retries: usize
§http_service: Option<Arc<dyn HttpService>>
§max_polling_time: Duration
§background_dynamic_routing: bool
§url: Option<Url>
See with_url
.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AgentConfig
impl !RefUnwindSafe for AgentConfig
impl Send for AgentConfig
impl Sync for AgentConfig
impl Unpin for AgentConfig
impl !UnwindSafe for AgentConfig
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