Skip to content

Commit

Permalink
more docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed Apr 14, 2023
1 parent 20ef645 commit c9949ea
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/re_ws_comms/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ pub enum RerunServerError {
TokioIoError(#[from] tokio::io::Error),
}

/// Websocket host for relaying [`LogMsg`]s to a web viewer.
pub struct RerunServer {
listener: TcpListener,
port: u16,
Expand Down Expand Up @@ -89,6 +90,9 @@ impl RerunServer {
}
}

/// Sync handle for the [`RerunServer`]
///
/// When dropped, the server will be shut down.
pub struct RerunServerHandle {
port: u16,
shutdown_tx: tokio::sync::broadcast::Sender<()>,
Expand Down

0 comments on commit c9949ea

Please sign in to comment.