pub enum Incoming {
Tcp(TcpStream),
Udp(Connection),
}
Expand description
An incoming connection, before it’s wrapped with HTTP.
Variants§
Tcp(TcpStream)
Used for HTTP/1 & HTTP/2
Udp(Connection)
Available on crate feature
http3
only.Used for HTTP/3
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Incoming
impl !RefUnwindSafe for Incoming
impl !Send for Incoming
impl !Sync for Incoming
impl Unpin for Incoming
impl !UnwindSafe for Incoming
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