pub enum SessionStep {
Welcome(Box<Welcome>),
Deliver(Box<WireCommand>),
Answer(Box<Ask>),
Watch(Watched),
Release,
Beat(BeatMs),
Refuse {
error: Box<AxError>,
close: bool,
},
}Expand description
What the shell does with one client frame. Exhaustive: a new frame kind has to be answered here rather than falling through to silence.
Variants§
Welcome(Box<Welcome>)
Answer with this welcome and move to SessionState::Live.
Deliver(Box<WireCommand>)
Hand this command to the sink.
Answer(Box<Ask>)
Evaluate this question and answer it under its own number.
Watch(Watched)
Count this session as watching the monitor and send it readings.
Release
Stop counting this session and stop sending it readings.
Beat(BeatMs)
Sample the monitor at this beat, for every session of this city.
Refuse
Send this refusal; close ends the session afterwards.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SessionStep
impl RefUnwindSafe for SessionStep
impl Send for SessionStep
impl Sync for SessionStep
impl Unpin for SessionStep
impl UnsafeUnpin for SessionStep
impl UnwindSafe for SessionStep
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