Struct wamp_async::ClientConfig [−][src]
Options one can set when connecting to a WAMP server
Implementations
impl ClientConfig
[src]
pub fn set_agent<T: AsRef<str>>(self, agent: T) -> Self
[src]
Replaces the default user agent string. Set to a zero length string to disable
pub fn get_agent(&self) -> &str
[src]
Returns the currently set agent string
pub fn set_max_msg_size(self, msg_size: u32) -> Self
[src]
Sets the maximum payload size which can be sent over the transport Set to 0 to use default
pub fn get_max_msg_size(&self) -> Option<u32>
[src]
Returns the maximum message size for the transport
pub fn set_serializers(self, serializers: Vec<SerializerType>) -> Self
[src]
Sets the serializers that will be used in order of preference (serializers[0] will be attempted first)
pub fn get_serializers(&self) -> &Vec<SerializerType>
[src]
Returns the priority list of serializers
pub fn set_roles(self, roles: Vec<ClientRole>) -> Self
[src]
Sets the roles that are intended to be used by the client
pub fn set_ssl_verify(self, val: bool) -> Self
[src]
Enables (default) or disables TLS certificate validation
pub fn get_ssl_verify(&self) -> bool
[src]
Returns whether certificate validation is enabled
pub fn add_websocket_header(self, key: String, val: String) -> Self
[src]
pub fn get_websocket_headers(&self) -> &HashMap<String, String>
[src]
Trait Implementations
impl Default for ClientConfig
[src]
Auto Trait Implementations
impl RefUnwindSafe for ClientConfig
impl Send for ClientConfig
impl Sync for ClientConfig
impl Unpin for ClientConfig
impl UnwindSafe for ClientConfig
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,