MARS documentation
Rust librariesmars-serverApi

mars-server · api::websocket

Public declarations and documentation for mars-server::api::websocket.

Package: mars-server · Workspace version: 0.1.0 · Module: api::websocket

This reference follows declared modules and public syntax, including public implementation methods. Function bodies and constant values are omitted. Feature conditions are retained. Private-module re-exports and trait resolution require the compiler; not every declaration is a root import.

api::websocket::ws_handler

WebSocket upgrade handler for /v1/ws.

pub async fn ws_handler(
    ws: WebSocketUpgrade,
    State(state): State<Arc<AppState>>,
) -> impl IntoResponse;

Source line: 19.

Source provenance

Source: mars-server/src/api/websocket.rs · SHA-256 7b54b888a149dec0ab5312a022ce26834752b82c7a28281888c83ac201f322d3. Package overview.

On this page