pub struct DefaultWebSocketAuth { /* private fields */ }Expand description
Default WebSocket authenticator
Implementations§
Source§impl DefaultWebSocketAuth
impl DefaultWebSocketAuth
Sourcepub const fn new(exchange: Exchange, method: AuthMethod) -> Self
pub const fn new(exchange: Exchange, method: AuthMethod) -> Self
Create a new authenticator
Trait Implementations§
Source§impl WebSocketAuth for DefaultWebSocketAuth
impl WebSocketAuth for DefaultWebSocketAuth
Source§fn create_auth_message(&self) -> WebSocketResult<Option<OwnedValue>>
fn create_auth_message(&self) -> WebSocketResult<Option<OwnedValue>>
Create authentication message
Source§fn get_auth_headers(&self) -> WebSocketResult<FxHashMap<String, String>>
fn get_auth_headers(&self) -> WebSocketResult<FxHashMap<String, String>>
Get authentication headers
Source§fn handle_auth_response(
&mut self,
response: &OwnedValue,
) -> WebSocketResult<bool>
fn handle_auth_response( &mut self, response: &OwnedValue, ) -> WebSocketResult<bool>
Handle authentication response
Auto Trait Implementations§
impl Freeze for DefaultWebSocketAuth
impl RefUnwindSafe for DefaultWebSocketAuth
impl Send for DefaultWebSocketAuth
impl Sync for DefaultWebSocketAuth
impl Unpin for DefaultWebSocketAuth
impl UnwindSafe for DefaultWebSocketAuth
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