pub struct WebSocketAuthConfig {
pub require_handshake_auth: bool,
pub allow_post_connect_auth: bool,
pub supported_methods: Vec<WebSocketAuthMethod>,
pub enable_per_message_auth: bool,
pub auth_subprotocol: Option<String>,
pub auth_timeout_secs: u64,
}
Expand description
Configuration for WebSocket authentication
Fields§
§require_handshake_auth: bool
Require authentication during WebSocket handshake
allow_post_connect_auth: bool
Allow authentication after connection (first message)
supported_methods: Vec<WebSocketAuthMethod>
Supported authentication methods
enable_per_message_auth: bool
Enable per-message authentication
auth_subprotocol: Option<String>
WebSocket subprotocol for authentication
auth_timeout_secs: u64
Connection timeout for authentication (seconds)
Implementations§
Source§impl WebSocketAuthConfig
Helper for creating WebSocket authentication configuration
impl WebSocketAuthConfig
Helper for creating WebSocket authentication configuration
Trait Implementations§
Source§impl Clone for WebSocketAuthConfig
impl Clone for WebSocketAuthConfig
Source§fn clone(&self) -> WebSocketAuthConfig
fn clone(&self) -> WebSocketAuthConfig
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 WebSocketAuthConfig
impl Debug for WebSocketAuthConfig
Auto Trait Implementations§
impl Freeze for WebSocketAuthConfig
impl RefUnwindSafe for WebSocketAuthConfig
impl Send for WebSocketAuthConfig
impl Sync for WebSocketAuthConfig
impl Unpin for WebSocketAuthConfig
impl UnwindSafe for WebSocketAuthConfig
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