pub struct RenderedContext {
pub system_stable: String,
pub system_knowledge: String,
pub turns: Vec<ProviderMessage>,
pub state_turn: Option<ProviderMessage>,
pub frozen_prefix_len: Option<u32>,
}Expand description
What the kernel rendered for one provider call.
Partitioned rather than flattened because the partitions have different cache lifetimes: the
identity and knowledge blocks and the leading frozen_prefix_len turns are byte-stable, the
state turn is rebuilt every call and therefore always last.
Fields§
§system_stable: String§system_knowledge: String§turns: Vec<ProviderMessage>§state_turn: Option<ProviderMessage>Volatile state turn, rendered after the cacheable history. None when there is none.
frozen_prefix_len: Option<u32>Number of leading turns that form the byte-stable frozen prefix.
Trait Implementations§
Source§impl Clone for RenderedContext
impl Clone for RenderedContext
Source§fn clone(&self) -> RenderedContext
fn clone(&self) -> RenderedContext
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 RenderedContext
impl Debug for RenderedContext
Source§impl Default for RenderedContext
impl Default for RenderedContext
Source§fn default() -> RenderedContext
fn default() -> RenderedContext
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RenderedContext
impl<'de> Deserialize<'de> for RenderedContext
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
Source§impl PartialEq for RenderedContext
impl PartialEq for RenderedContext
Source§impl Serialize for RenderedContext
impl Serialize for RenderedContext
impl StructuralPartialEq for RenderedContext
Auto Trait Implementations§
impl Freeze for RenderedContext
impl RefUnwindSafe for RenderedContext
impl Send for RenderedContext
impl Sync for RenderedContext
impl Unpin for RenderedContext
impl UnsafeUnpin for RenderedContext
impl UnwindSafe for RenderedContext
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