pub struct ClientConfig {
pub web_socket_config: WebSocketConfig,
pub ca_file: Option<String>,
}
Expand description
Used for connecting over websocket endpoints as a client including the general websocket connection configuration with the addition of a ca_file, in the case the server you are trying to connect uses a self-signed certificate.
Fields§
§web_socket_config: WebSocketConfig
§ca_file: Option<String>
In some cases, the server you are trying to connect would use a self-signed certificate. On these cases, the client would not be able to verify the CA signature of that certificate, only by looking over our browser/operational system certificate store of trusted known CAs. The client would need to provide the CA file used to sign the server certificate otherwise the TLS handshake would fail. This TLS setup is mostly used for development, and we don’t recommend for production purposes
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 · 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 ClientConfig
impl Debug for ClientConfig
Source§impl Default for ClientConfig
impl Default for ClientConfig
Source§fn default() -> ClientConfig
fn default() -> ClientConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientConfig
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin 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