run_with_duplex_server

Function run_with_duplex_server 

Source
pub async fn run_with_duplex_server<S, C, E>(app: WireframeApp<S, C, E>)
where S: TestSerializer, C: Send + 'static, E: Packet,
Expand description

Run app against an empty duplex stream.

This helper drives the connection lifecycle without sending any frames, ensuring setup and teardown callbacks execute.

ยงPanics

Panics if handle_connection fails.

let app = WireframeApp::new()
    .expect("failed to initialize app");
run_with_duplex_server(app).await;
}