pub struct ConfigBuilder { /* private fields */ }Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn with_ws_ha(self, ws_ha: WebSocketHighAvailability) -> Self
pub fn with_ws_ha(self, ws_ha: WebSocketHighAvailability) -> Self
Sets the ws_ha parameter.
pub fn with_ws_max_reconnect(self, ws_max_reconnect: usize) -> Self
Sourcepub fn with_insecure_skip_verify(
self,
insecure_skip_verify: InsecureSkipVerify,
) -> Self
pub fn with_insecure_skip_verify( self, insecure_skip_verify: InsecureSkipVerify, ) -> Self
Sets the insecure_skip_verify parameter.
Sourcepub fn with_inspect_http_response(
self,
inspect_http_response: fn(&Response),
) -> Self
pub fn with_inspect_http_response( self, inspect_http_response: fn(&Response), ) -> Self
Sets the inspect_http_response parameter.
Sourcepub fn build(self) -> Result<Config, ConfigError>
pub fn build(self) -> Result<Config, ConfigError>
Builds the Config instance.
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