#[non_exhaustive]pub struct OnDemandAgentManagerOptions {
pub seed_config: SeedConfig,
pub authenticator: Authenticator,
pub auth_mechanisms: Vec<AuthMechanism>,
pub tls_config: Option<Arc<ClientConfig>>,
pub network: Option<String>,
pub compression_config: CompressionConfig,
pub config_poller_config: ConfigPollerConfig,
pub kv_config: KvConfig,
pub http_config: HttpConfig,
pub tcp_keep_alive_time: Option<Duration>,
pub orphan_response_handler: Option<OrphanResponseHandler>,
}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.seed_config: SeedConfig§authenticator: Authenticator§auth_mechanisms: Vec<AuthMechanism>§tls_config: Option<Arc<ClientConfig>>§network: Option<String>§compression_config: CompressionConfig§config_poller_config: ConfigPollerConfig§kv_config: KvConfig§http_config: HttpConfig§tcp_keep_alive_time: Option<Duration>§orphan_response_handler: Option<OrphanResponseHandler>Implementations§
Source§impl OnDemandAgentManagerOptions
impl OnDemandAgentManagerOptions
pub fn new(seed_config: SeedConfig, authenticator: Authenticator) -> Self
pub fn seed_config(self, seed_config: SeedConfig) -> Self
pub fn authenticator(self, authenticator: Authenticator) -> Self
pub fn tls_config( self, tls_config: impl Into<Option<Arc<ClientConfig>>>, ) -> Self
pub fn compression_config(self, compression_config: CompressionConfig) -> Self
pub fn config_poller_config( self, config_poller_config: ConfigPollerConfig, ) -> Self
pub fn auth_mechanisms( self, auth_mechanisms: impl Into<Vec<AuthMechanism>>, ) -> Self
pub fn network(self, network: impl Into<String>) -> Self
pub fn kv_config(self, kv_config: KvConfig) -> Self
pub fn http_config(self, http_config: HttpConfig) -> Self
pub fn tcp_keep_alive_time(self, tcp_keep_alive: Duration) -> Self
pub fn orphan_reporter_handler( self, orphan_response_handler: Option<OrphanResponseHandler>, ) -> Self
Trait Implementations§
Source§impl Clone for OnDemandAgentManagerOptions
impl Clone for OnDemandAgentManagerOptions
Source§fn clone(&self) -> OnDemandAgentManagerOptions
fn clone(&self) -> OnDemandAgentManagerOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl From<AgentOptions> for OnDemandAgentManagerOptions
impl From<AgentOptions> for OnDemandAgentManagerOptions
Source§fn from(opts: AgentOptions) -> Self
fn from(opts: AgentOptions) -> Self
Converts to this type from the input type.
Source§impl From<OnDemandAgentManagerOptions> for AgentOptions
impl From<OnDemandAgentManagerOptions> for AgentOptions
Source§fn from(opts: OnDemandAgentManagerOptions) -> Self
fn from(opts: OnDemandAgentManagerOptions) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OnDemandAgentManagerOptions
impl !RefUnwindSafe for OnDemandAgentManagerOptions
impl Send for OnDemandAgentManagerOptions
impl Sync for OnDemandAgentManagerOptions
impl Unpin for OnDemandAgentManagerOptions
impl UnsafeUnpin for OnDemandAgentManagerOptions
impl !UnwindSafe for OnDemandAgentManagerOptions
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