pub struct Config { /* private fields */ }Expand description
Configuration for the Sockudo client
Implementations§
Source§impl Config
impl Config
Sourcepub fn builder() -> ConfigBuilder
pub fn builder() -> ConfigBuilder
Creates a new configuration builder
Sourcepub fn new(
app_id: impl Into<String>,
key: impl Into<String>,
secret: impl Into<String>,
) -> Self
pub fn new( app_id: impl Into<String>, key: impl Into<String>, secret: impl Into<String>, ) -> Self
Creates a new configuration (for backward compatibility)
pub fn scheme(&self) -> &str
pub fn host(&self) -> &str
pub fn port(&self) -> Option<u16>
pub fn app_id(&self) -> &str
pub fn token(&self) -> &Token
pub fn timeout(&self) -> Duration
pub fn encryption_master_key(&self) -> Option<&[u8]>
pub fn pool_max_idle_per_host(&self) -> usize
pub fn enable_retry(&self) -> bool
pub fn max_retries(&self) -> u32
pub fn auto_idempotency_key(&self) -> bool
Sourcepub fn prefix_path(&self, sub_path: &str) -> String
pub fn prefix_path(&self, sub_path: &str) -> String
Gets the prefix path for API requests
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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