pub struct UpdateAssemblyRequest {
pub session: u64,
pub from_gen: u64,
pub to_gen: u64,
pub payload: Option<Payload>,
}Expand description
UpdateAssembly(session, assembly): replace the working assembly after user edits, undo, broadcasts from other plugins, etc.
Payload is either a full Assembly (full) or a delta edit
list (delta). Both produce equivalent end state; delta lets
stateful plugins preserve derived data across mutations.
from_gen / to_gen are the host’s broadcast generation counters.
from_gen is the gen the plugin should currently hold; to_gen is
the gen after applying this payload. A plugin that detects
from_gen != its local gen returns Error{code: "STALE_GEN"} on
its next Invoke / Query / Score; the host responds by re-sending a
full UpdateAssembly and retrying once. Plugins do not originate
recovery messages - recovery rides the error channel.
Fields§
§session: u64§from_gen: u64§to_gen: u64§payload: Option<Payload>Wire-compat with senders that previously emitted bytes assembly = 2:
proto3 oneof preserves the field number, so legacy bytes parse as
the full arm.
Trait Implementations§
Source§impl Clone for UpdateAssemblyRequest
impl Clone for UpdateAssemblyRequest
Source§fn clone(&self) -> UpdateAssemblyRequest
fn clone(&self) -> UpdateAssemblyRequest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UpdateAssemblyRequest
impl Debug for UpdateAssemblyRequest
Source§impl Default for UpdateAssemblyRequest
impl Default for UpdateAssemblyRequest
Source§impl Message for UpdateAssemblyRequest
impl Message for UpdateAssemblyRequest
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for UpdateAssemblyRequest
impl PartialEq for UpdateAssemblyRequest
Source§fn eq(&self, other: &UpdateAssemblyRequest) -> bool
fn eq(&self, other: &UpdateAssemblyRequest) -> bool
self and other values to be equal, and is used by ==.