pub struct HttpHandler;Implementations§
Source§impl HttpHandler
impl HttpHandler
Trait Implementations§
Source§impl Clone for HttpHandler
impl Clone for HttpHandler
Source§fn clone(&self) -> HttpHandler
fn clone(&self) -> HttpHandler
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 HttpHandler
impl ProtocolHandler for HttpHandler
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 HttpHandler
impl RefUnwindSafe for HttpHandler
impl Send for HttpHandler
impl Sync for HttpHandler
impl Unpin for HttpHandler
impl UnwindSafe for HttpHandler
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