Skip to main content

Module live

Module live 

Source
Expand description

What a view has learned from the stream, which its first render and every later one both read.

Three of the facts here are announced on the wire once and retained by nobody: whether a completion has been shown, which seats a view is showing, and whether a seat’s failed turn has been shown since it failed. A view that attaches to an already-running session cannot reconstruct them, so they are folded here rather than in the view.

Re-exportsΒ§

use std::collections::HashMap; πŸ”’
use std::sync::Mutex; πŸ”’
use std::sync::MutexGuard; πŸ”’
use std::time::SystemTime; πŸ”’
use forge_primitives::Message; πŸ”’
use forge_primitives::SessionSlot; πŸ”’
use forge_primitives::runtime::RuntimeSessionState; πŸ”’
use crate::SessionUpdate; πŸ”’
use crate::composer::Composer; πŸ”’
use crate::surface::is_success_result; πŸ”’
use crate::translate::state_parsing::parse_runtime_session_state; πŸ”’
use crate::unseen::Unseen; πŸ”’

StructsΒ§

Live
What the view has learned from the stream, which the first render and every later one both read.
LiveState
What the stream has said, as one render reads it. A render takes this rather than the lock: the guard is not Send, and a handler that held it across its own awaits could not be one.

EnumsΒ§

FleetNews
What one update asks of the fleet region: the rows, and the marks on them.

FunctionsΒ§

fleet_news
Classify one update for the fleet region.
mark_showing πŸ”’
Whether a failure at at is still the reader’s to see.