pub enum Input<'x> {
Timeout(Time),
Packet(&'x [u8], SocketAddr),
}Expand description
Input to Server.
Variants§
Timeout(Time)
A timeout.
It’s fine to send timeouts when there is nothing else to do.
The service expects a timeout for the Output::Timeout indicated.
Packet(&'x [u8], SocketAddr)
Some data coming from the network.
Trait Implementations§
Auto Trait Implementations§
impl<'x> Freeze for Input<'x>
impl<'x> RefUnwindSafe for Input<'x>
impl<'x> Send for Input<'x>
impl<'x> Sync for Input<'x>
impl<'x> Unpin for Input<'x>
impl<'x> UnwindSafe for Input<'x>
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