pub struct WsEndpointConfig {Show 14 fields
pub scheme: String,
pub host: String,
pub port: u16,
pub path: String,
pub max_connections: u32,
pub max_message_size: u32,
pub send_to_all: bool,
pub heartbeat_interval: Duration,
pub idle_timeout: Duration,
pub connect_timeout: Duration,
pub response_timeout: Duration,
pub allow_origin: String,
pub tls_cert: Option<String>,
pub tls_key: Option<String>,
}Fields§
§scheme: String§host: String§port: u16§path: String§max_connections: u32§max_message_size: u32§send_to_all: bool§heartbeat_interval: Duration§idle_timeout: Duration§connect_timeout: Duration§response_timeout: Duration§allow_origin: String§tls_cert: Option<String>§tls_key: Option<String>Implementations§
Source§impl WsEndpointConfig
impl WsEndpointConfig
pub fn from_uri(uri: &str) -> Result<Self, CamelError>
pub fn server_config(&self) -> WsServerConfig
pub fn client_config(&self) -> WsClientConfig
pub fn canonical_host(&self) -> String
Trait Implementations§
Source§impl Clone for WsEndpointConfig
impl Clone for WsEndpointConfig
Source§fn clone(&self) -> WsEndpointConfig
fn clone(&self) -> WsEndpointConfig
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 WsEndpointConfig
impl Debug for WsEndpointConfig
Auto Trait Implementations§
impl Freeze for WsEndpointConfig
impl RefUnwindSafe for WsEndpointConfig
impl Send for WsEndpointConfig
impl Sync for WsEndpointConfig
impl Unpin for WsEndpointConfig
impl UnsafeUnpin for WsEndpointConfig
impl UnwindSafe for WsEndpointConfig
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