enum ServerBackend {
StreamAcceptor(Arc<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 !RefUnwindSafe for ServerBackend
impl !UnwindSafe for ServerBackend
impl Freeze for ServerBackend
impl Send for ServerBackend
impl Sync for ServerBackend
impl Unpin for ServerBackend
impl UnsafeUnpin 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