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>>,
}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>>The with_transport.
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