pub struct NoopServerHooks;Expand description
Default no-op hooks implementation.
Trait Implementations§
Source§impl Clone for NoopServerHooks
impl Clone for NoopServerHooks
Source§fn clone(&self) -> NoopServerHooks
fn clone(&self) -> NoopServerHooks
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NoopServerHooks
impl Debug for NoopServerHooks
Source§impl Default for NoopServerHooks
impl Default for NoopServerHooks
Source§fn default() -> NoopServerHooks
fn default() -> NoopServerHooks
Returns the “default value” for a type. Read more
Source§impl ServerHooks for NoopServerHooks
impl ServerHooks for NoopServerHooks
fn on_accept_error(&self, _err: &Error)
fn on_connection_open(&self, _info: ConnectionInfo)
fn on_connection_close(&self, _info: ConnectionInfo)
fn on_command(&self, _id: u64, _command: &Command)
fn on_protocol_error(&self, _err: &RespError)
fn on_io_error(&self, _err: &Error)
Auto Trait Implementations§
impl Freeze for NoopServerHooks
impl RefUnwindSafe for NoopServerHooks
impl Send for NoopServerHooks
impl Sync for NoopServerHooks
impl Unpin for NoopServerHooks
impl UnsafeUnpin for NoopServerHooks
impl UnwindSafe for NoopServerHooks
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