pub struct WebSocketHandler;Implementations§
Trait Implementations§
Source§impl Clone for WebSocketHandler
impl Clone for WebSocketHandler
Source§fn clone(&self) -> WebSocketHandler
fn clone(&self) -> WebSocketHandler
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 ProtocolHandler for WebSocketHandler
impl ProtocolHandler for WebSocketHandler
Source§fn can_handle(&self, buffer: &[u8]) -> bool
fn can_handle(&self, buffer: &[u8]) -> bool
Detect if this protocol can handle the given connection buffer
Source§fn handle_connection(&self, conn: &mut Connection) -> Result<(), ProtocolError>
fn handle_connection(&self, conn: &mut Connection) -> Result<(), ProtocolError>
Handle a connection using this protocol
Source§fn handle_read(&self, conn: &mut Connection) -> Result<(), ProtocolError>
fn handle_read(&self, conn: &mut Connection) -> Result<(), ProtocolError>
Handle readable events for this connection
Source§fn handle_write(&self, conn: &mut Connection) -> Result<(), ProtocolError>
fn handle_write(&self, conn: &mut Connection) -> Result<(), ProtocolError>
Handle writable events for this connection
Source§fn should_close(&self, conn: &Connection) -> bool
fn should_close(&self, conn: &Connection) -> bool
Check if the connection should be closed
Auto Trait Implementations§
impl Freeze for WebSocketHandler
impl RefUnwindSafe for WebSocketHandler
impl Send for WebSocketHandler
impl Sync for WebSocketHandler
impl Unpin for WebSocketHandler
impl UnwindSafe for WebSocketHandler
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