pub struct EchoHandler<P: IOProtocol> { /* private fields */ }
Expand description
Handler that echoes incoming bytes
For benchmarking I/O throuput and latency
Implementations§
Source§impl<P: IOProtocol> EchoHandler<P>
impl<P: IOProtocol> EchoHandler<P>
pub fn new(eproto: P) -> EchoHandler<P>
Trait Implementations§
Source§impl<P: IOProtocol> Handler<EpollEvent> for EchoHandler<P>
impl<P: IOProtocol> Handler<EpollEvent> for EchoHandler<P>
fn is_terminated(&self) -> bool
fn ready(&mut self, event: &EpollEvent)
Auto Trait Implementations§
impl<P> Freeze for EchoHandler<P>where
P: Freeze,
impl<P> RefUnwindSafe for EchoHandler<P>where
P: RefUnwindSafe,
impl<P> Send for EchoHandler<P>
impl<P> Sync for EchoHandler<P>where
P: Sync,
impl<P> Unpin for EchoHandler<P>where
P: Unpin,
impl<P> UnwindSafe for EchoHandler<P>where
P: UnwindSafe,
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