pub enum Message<'a> {
Query,
Begin {
meta: SnapshotMeta,
outputs: &'a [u8],
},
Node(NodeRef<'a>),
Code {
offset: u16,
bytes: &'a [u8],
},
End,
Error(ErrorCode),
}Expand description
One query or response record. No variant owns or allocates storage.
Variants§
Query
Request a coherent snapshot of the currently applied graph.
Begin
Start a snapshot and identify the signal buses bound to physical outputs.
Fields
§
meta: SnapshotMetaCaptured revision, timeline, and record counts.
Node(NodeRef<'a>)
Describe one of the native process objects in the snapshot.
Code
Append contiguous signal bytecode to the snapshot.
Fields
End
Finish the snapshot. The client validates all counts and connections.
Error(ErrorCode)
Reject a query without changing the running graph.
Trait Implementations§
impl<'a> Copy for Message<'a>
impl<'a> Eq for Message<'a>
impl<'a> StructuralPartialEq for Message<'a>
Auto Trait Implementations§
impl<'a> Forget for Message<'a>
impl<'a> Freeze for Message<'a>
impl<'a> Move for Message<'a>
impl<'a> RefUnwindSafe for Message<'a>
impl<'a> Send for Message<'a>
impl<'a> Sync for Message<'a>
impl<'a> Unpin for Message<'a>
impl<'a> UnsafeUnpin for Message<'a>
impl<'a> UnwindSafe for Message<'a>
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