pub struct NodeSnapshotProto {
pub schema_version: u32,
pub peer_id: Vec<u8>,
pub listen_addrs: Vec<String>,
pub external_addrs: Vec<String>,
pub components: Vec<ComponentSnapshotProto>,
pub captured_at_unix_micros: i64,
pub modules: Vec<Vec<u8>>,
}Expand description
Top-level snapshot of a Node’s state. Produced by
Node::snapshot(); consumed by Node::restore(snap). See
ENGINE.md §15 and AUTHORING_COMPONENTS.md §14 for the lifecycle.
Fields§
§schema_version: u32Snapshot format version. Bump on breaking changes; the Node refuses restore from older versions unless a migrator is wired.
peer_id: Vec<u8>The Node’s local PeerId, multihash-encoded.
listen_addrs: Vec<String>Addresses the Node was listening on at snapshot time.
external_addrs: Vec<String>External (publicly observable) addresses that had been confirmed.
components: Vec<ComponentSnapshotProto>One entry per (concrete_type, instance_id) component the Node
owns. Restored by the framework calling the captured
ConcreteComponent::restore_fn(payload) for each entry.
captured_at_unix_micros: i64When the snapshot was captured (Unix microseconds).
modules: Vec<Vec<u8>>One entry per registered BuiltModule, encoded as an ONNX
ModelProto (serialized bytes). The Node restores its topology
including every (concrete_type, instance_id) metadata key on
each NodeProto — the same data Node.build() walked at
construction.
Trait Implementations§
Source§impl Clone for NodeSnapshotProto
impl Clone for NodeSnapshotProto
Source§fn clone(&self) -> NodeSnapshotProto
fn clone(&self) -> NodeSnapshotProto
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 NodeSnapshotProto
impl Debug for NodeSnapshotProto
Source§impl Default for NodeSnapshotProto
impl Default for NodeSnapshotProto
Source§fn default() -> NodeSnapshotProto
fn default() -> NodeSnapshotProto
Source§impl Message for NodeSnapshotProto
impl Message for NodeSnapshotProto
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 NodeSnapshotProto
impl PartialEq for NodeSnapshotProto
Source§fn eq(&self, other: &NodeSnapshotProto) -> bool
fn eq(&self, other: &NodeSnapshotProto) -> bool
self and other values to be equal, and is used by ==.