pub struct ConfigBuilder { /* private fields */ }Expand description
Builder for Sockudo configuration
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn encryption_master_key(self, key: Vec<u8>) -> Result<Self>
pub fn encryption_master_key(self, key: Vec<u8>) -> Result<Self>
Sets the encryption master key from raw bytes
Sourcepub fn encryption_master_key_base64(
self,
key_base64: impl AsRef<str>,
) -> Result<Self>
pub fn encryption_master_key_base64( self, key_base64: impl AsRef<str>, ) -> Result<Self>
Sets the encryption master key from base64
Sourcepub fn pool_max_idle_per_host(self, max: usize) -> Self
pub fn pool_max_idle_per_host(self, max: usize) -> Self
Sets the maximum idle connections per host
Sourcepub fn enable_retry(self, enable: bool) -> Self
pub fn enable_retry(self, enable: bool) -> Self
Enables or disables retry logic
Sourcepub fn max_retries(self, max: u32) -> Self
pub fn max_retries(self, max: u32) -> Self
Sets the maximum number of retries
Sourcepub fn auto_idempotency_key(self, enable: bool) -> Self
pub fn auto_idempotency_key(self, enable: bool) -> Self
Enables or disables automatic deterministic idempotency key generation.
When enabled (default), each trigger() / trigger_batch() call that lacks
an explicit idempotency key will receive one derived from the client’s session ID
and a monotonically increasing publish serial.
Trait Implementations§
Source§impl Default for ConfigBuilder
impl Default for ConfigBuilder
Source§fn default() -> ConfigBuilder
fn default() -> ConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnsafeUnpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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