pub enum ResponseBody {
Noop,
Span(WireSpan),
CacheLevel(WireLevelFilter),
CacheChance(f64),
Ack,
Error(String),
}Variants§
Noop
Filler used by the framework for control-only frames (cancel / end).
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResponseBody
impl Debug for ResponseBody
Source§impl<'de> Deserialize<'de> for ResponseBody
impl<'de> Deserialize<'de> for ResponseBody
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ResponseBody
impl RefUnwindSafe for ResponseBody
impl Send for ResponseBody
impl Sync for ResponseBody
impl Unpin for ResponseBody
impl UnsafeUnpin for ResponseBody
impl UnwindSafe for ResponseBody
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