pub struct PendingPair {Show 13 fields
pub code: String,
pub code_hash: String,
pub role: String,
pub relay_url: String,
pub status: String,
pub sas: Option<String>,
pub peer_did: Option<String>,
pub created_at: String,
pub last_error: Option<String>,
pub pair_id: Option<String>,
pub our_slot_id: Option<String>,
pub our_slot_token: Option<String>,
pub spake2_seed_b64: Option<String>,
}Fields§
§code: StringThe shared code phrase (e.g. “30-UE2BZG”).
code_hash: StringSHA-256 of the domain-tagged code. Used to call pair_abandon on failure paths without re-deriving.
role: String“host” or “guest”.
relay_url: String§status: StringSee state machine in module docs.
sas: Option<String>SAS digits (6-char string) once daemon computes them. None until then.
peer_did: Option<String>Set after pair_session_finalize completes.
created_at: StringISO-8601 UTC.
last_error: Option<String>Last error message if status=aborted or aborted_restart.
pair_id: Option<String>Relay pair_id, written by daemon after pair_open succeeds. Lets a
fresh daemon process restore the in-memory PairSessionState without
re-registering on the relay.
our_slot_id: Option<String>Our slot_id on the relay (we own this slot; bootstrap exchange writes to it). Same restore-purpose as pair_id.
our_slot_token: Option<String>Our slot_token (auth for posting to our slot). Already lives in relay_state; duplicated here so restore doesn’t need a second file read.
spake2_seed_b64: Option<String>Base64 of the 32-byte SPAKE2 seed. Lets restore_pair_session reconstruct an equivalent PakeSide. SECURITY: file is in $WIRE_HOME/state/wire/pending-pair/ which is user-only by default (inherits umask). Pending files live minutes; daemon GCs terminal states after 1 hour.
Trait Implementations§
Source§impl Clone for PendingPair
impl Clone for PendingPair
Source§fn clone(&self) -> PendingPair
fn clone(&self) -> PendingPair
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more