pub struct ServerState {
pub next_conn_id: ConnectionId,
pub next_cut_id: CutOrdinal,
pub next_snapshot_id: i64,
pub next_session_id: SessionOrdinal,
pub connections: HashMap<ConnectionId, ConnectedProcess>,
pub cuts: BTreeMap<CutId, CutState>,
pub pending_snapshots: HashMap<i64, SnapshotPending>,
pub snapshot_streams: HashMap<i64, SnapshotStreamState>,
pub last_snapshot_json: Option<String>,
pub snapshot_history_ids: VecDeque<i64>,
pub snapshot_history_json: BTreeMap<i64, String>,
pub recording: Option<RecordingState>,
}Fields§
§next_conn_id: ConnectionId§next_cut_id: CutOrdinal§next_snapshot_id: i64§next_session_id: SessionOrdinal§connections: HashMap<ConnectionId, ConnectedProcess>§cuts: BTreeMap<CutId, CutState>§pending_snapshots: HashMap<i64, SnapshotPending>§snapshot_streams: HashMap<i64, SnapshotStreamState>§last_snapshot_json: Option<String>§snapshot_history_ids: VecDeque<i64>§snapshot_history_json: BTreeMap<i64, String>§recording: Option<RecordingState>Implementations§
Source§impl ServerState
impl ServerState
pub fn new(next_conn_id: ConnectionId) -> Self
Auto Trait Implementations§
impl Freeze for ServerState
impl RefUnwindSafe for ServerState
impl Send for ServerState
impl Sync for ServerState
impl Unpin for ServerState
impl UnsafeUnpin for ServerState
impl UnwindSafe for ServerState
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