pub struct AgentConfig {
pub nonce_factory: Arc<dyn NonceGenerator>,
pub identity: Arc<dyn Identity>,
pub ingress_expiry: Option<Duration>,
pub transport: Option<Arc<dyn Transport>>,
pub verify_query_signatures: bool,
pub max_concurrent_requests: usize,
}
Expand description
A configuration for an agent.
Fields§
§nonce_factory: Arc<dyn NonceGenerator>
See with_nonce_factory
.
identity: Arc<dyn Identity>
See with_identity
.
ingress_expiry: Option<Duration>
See with_ingress_expiry
.
transport: Option<Arc<dyn Transport>>
See with_transport
.
verify_query_signatures: bool
§max_concurrent_requests: usize
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