#[non_exhaustive]pub struct AgentOptions {
pub seed_config: SeedConfig,
pub authenticator: Authenticator,
pub auth_mechanisms: Vec<AuthMechanism>,
pub tls_config: Option<Arc<ClientConfig>>,
pub bucket_name: Option<String>,
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>>§bucket_name: Option<String>§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 AgentOptions
impl AgentOptions
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 bucket_name(self, bucket_name: impl Into<Option<String>>) -> Self
pub fn network(self, network: impl Into<Option<String>>) -> 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: Vec<AuthMechanism>) -> 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: OrphanResponseHandler, ) -> Self
Trait Implementations§
Source§impl Clone for AgentOptions
impl Clone for AgentOptions
Source§fn clone(&self) -> AgentOptions
fn clone(&self) -> AgentOptions
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 Debug for AgentOptions
impl Debug for AgentOptions
Source§impl Display for AgentOptions
impl Display for AgentOptions
Source§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 AgentOptions
impl !RefUnwindSafe for AgentOptions
impl Send for AgentOptions
impl Sync for AgentOptions
impl Unpin for AgentOptions
impl UnsafeUnpin for AgentOptions
impl !UnwindSafe for AgentOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.