Struct wamp_async::ClientConfig[][src]

pub struct ClientConfig { /* fields omitted */ }

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

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,