pub struct ClientConfig {
pub base_url: String,
pub tailnet: String,
pub credentials: Credentials,
pub budget: Duration,
pub concurrency: usize,
pub max_response_bytes: usize,
pub user_agent: String,
}Expand description
How to reach the control plane.
Fields§
§base_url: StringWhere to send. DEFAULT_BASE_URL unless a test says otherwise.
tailnet: StringThe tailnet a path means when the caller does not name one.
credentials: Credentials§budget: DurationThe whole of one call, retries and backoff included.
concurrency: usize§max_response_bytes: usizeThe largest body this server will hold in memory.
user_agent: StringImplementations§
Source§impl ClientConfig
impl ClientConfig
Sourcepub fn new(credentials: Credentials) -> Self
pub fn new(credentials: Credentials) -> Self
A configuration pointed at the real control plane.
Trait Implementations§
Source§impl Clone for ClientConfig
impl Clone for ClientConfig
Source§fn clone(&self) -> ClientConfig
fn clone(&self) -> ClientConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnsafeUnpin for ClientConfig
impl UnwindSafe for ClientConfig
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