pub struct MigrationOpts {
pub transport_identity: bool,
pub retry_not_ready: Option<Duration>,
}Expand description
Options for DaemonRuntime::start_migration_with.
- Stage 6 of
DAEMON_IDENTITY_MIGRATION_PLAN.md: thetransport_identityflag. Defaulttrue. - Stages 3 + 4 of
DAEMON_RUNTIME_READINESS_PLAN.md: theretry_not_readybudget. When the migration target respondsNotReady(runtime still inRegistering), the source backs off + re-initiates up to this total elapsed time.Nonedisables retry; the firstNotReadysurfaces immediately.
Fields§
§transport_identity: boolIf true (default), the source node seals its daemon’s
ed25519 seed into the outbound snapshot using the target’s
X25519 static pubkey. The target unseals on arrival and the
migrated daemon keeps its full signing capability.
If false, the envelope is omitted and the target
reconstructs the daemon with a public_only keypair —
identity queries (entity_id, origin_hash) work, but
sign calls fail with EntityError::ReadOnly. Appropriate
for pure compute daemons that only consume events and emit
payloads, and do NOT need to mint capability announcements
or issue permission tokens from the target.
retry_not_ready: Option<Duration>Retry budget for MigrationFailureReason::NotReady.
Some(d) (default 30 s): on NotReady, the source backs
off (500 ms → 1 s → 2 s → 4 s → 8 s, capped at 16 s) and
re-initiates the migration. The total retry clock is
capped at d; after that, the caller sees
MigrationFailureReason::NotReadyTimeout.
None: no retry. The first NotReady surfaces as a
terminal failure to the caller.
Trait Implementations§
Source§impl Clone for MigrationOpts
impl Clone for MigrationOpts
Source§fn clone(&self) -> MigrationOpts
fn clone(&self) -> MigrationOpts
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more