enum ServerBackend {
StreamAcceptor(Box<dyn AsyncAcceptor>),
QuicEndpoint(QuicEndpoint),
Http(HttpServer),
}Expand description
One variant per backend family. Stream-based transports share
a single AsyncAcceptor; QUIC and HTTP have their own loops.
Variants§
Auto Trait Implementations§
impl Freeze for ServerBackend
impl !RefUnwindSafe for ServerBackend
impl Send for ServerBackend
impl Sync for ServerBackend
impl Unpin for ServerBackend
impl UnsafeUnpin for ServerBackend
impl !UnwindSafe for ServerBackend
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