Document and expose public members for Rojo API

This commit is contained in:
Lucien Greathouse
2019-09-03 14:20:12 -07:00
parent cf5f20bbb5
commit d5c816f24d
4 changed files with 19 additions and 6 deletions

View File

@@ -1,6 +1,10 @@
use serde::{Deserialize, Serialize};
use uuid::Uuid;
/// A randomly generated ID generated by Rojo during a serve session.
///
/// If the session ID of the server changes between requests, that indicates
/// that a new server has started up and the session should be terminated.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash, Serialize, Deserialize)]
pub struct SessionId(Uuid);