pub struct NoopHandler;Expand description
Default no-op connection handler.
Used when no lifecycle hooks are needed (the simple case).
Trait Implementations§
Source§impl Clone for NoopHandler
impl Clone for NoopHandler
Source§fn clone(&self) -> NoopHandler
fn clone(&self) -> NoopHandler
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 ConnectionHandler for NoopHandler
impl ConnectionHandler for NoopHandler
Source§fn on_connected(
&mut self,
ctx: &mut HandshakeContext<'_>,
) -> impl Future<Output = Result<(), Error>> + Send
fn on_connected( &mut self, ctx: &mut HandshakeContext<'_>, ) -> impl Future<Output = Result<(), Error>> + Send
Called after the WebSocket upgrade completes, before the socket loop starts. Read more
Source§impl Debug for NoopHandler
impl Debug for NoopHandler
impl Copy for NoopHandler
Auto Trait Implementations§
impl Freeze for NoopHandler
impl RefUnwindSafe for NoopHandler
impl Send for NoopHandler
impl Sync for NoopHandler
impl Unpin for NoopHandler
impl UnsafeUnpin for NoopHandler
impl UnwindSafe for NoopHandler
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