Skip to main content

SessionRotationCommit

Type Alias SessionRotationCommit 

Source
pub type SessionRotationCommit = Box<dyn FnOnce()>;
Expand description

Infallible phase-2 commit closure returned by NodeNetworkParameters::prepare_session_key_rotation.

Executed synchronously after all phase-1 validations and durable key persistence succeed, so committing the prepared session credentials in memory cannot fail or require rollback.

Aliased Typeยง

pub struct SessionRotationCommit(/* private fields */);