pub struct SbdClientConfig {
pub out_buffer_size: usize,
pub allow_plain_text: bool,
pub danger_disable_certificate_check: bool,
pub headers: Vec<(String, String)>,
pub auth_material: Option<Vec<u8>>,
}Expand description
Configuration for connecting an SbdClient.
Fields§
§out_buffer_size: usizeOutgoing message buffer size.
allow_plain_text: boolSetting this to true allows ws:// scheme.
danger_disable_certificate_check: boolSetting this to true disables certificate verification on wss://
scheme. WARNING: this is a dangerous configuration and should not
be used outside of testing (i.e. self-signed tls certificates).
headers: Vec<(String, String)>Set any custom http headers to send with the websocket connect.
auth_material: Option<Vec<u8>>If you must pass authentication material to the sbd server, specify it here.
Trait Implementations§
Source§impl Clone for SbdClientConfig
impl Clone for SbdClientConfig
Source§fn clone(&self) -> SbdClientConfig
fn clone(&self) -> SbdClientConfig
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 moreAuto Trait Implementations§
impl Freeze for SbdClientConfig
impl RefUnwindSafe for SbdClientConfig
impl Send for SbdClientConfig
impl Sync for SbdClientConfig
impl Unpin for SbdClientConfig
impl UnwindSafe for SbdClientConfig
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