pub enum ResponseBody {
Noop,
ServerInfo(WireServerInfo),
Span(WireSpan),
CacheLevel(WireLevelFilter),
CacheChance(f64),
Ack,
Error(String),
}Variants§
Noop
Filler used by the framework for control-only frames (cancel / end).
ServerInfo(WireServerInfo)
First message of every StartStream — identifies the server
binary. See WireServerInfo.
Span(WireSpan)
One closed span snapshot. The streaming response side of StartStream
emits these one at a time as the host’s span cache produces them.
CacheLevel(WireLevelFilter)
Server-pushed notification of the current cache-recording level.
Sent once when a StartStream begins and again every time the
level changes (e.g. another client sent SetCacheLevel). The
client treats this as the source of truth for its UI display.
CacheChance(f64)
Server-pushed notification of the current effective chance
percentage [0.0, 100.0] for the cache’s ChancePredicate.
Same lifecycle as ResponseBody::CacheLevel: sent on
StartStream and on every change.
Ack
Acknowledgement of a unary command (Set*, StopStream).
Error(String)
Server-side error message for a command.
Trait Implementations§
Source§impl Clone for ResponseBody
impl Clone for ResponseBody
Source§fn clone(&self) -> ResponseBody
fn clone(&self) -> ResponseBody
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more