pub struct DetachAuthorityRefused { /* private fields */ }Expand description
The exact server value that refused a replayed detach’s authority.
This is the terminal for a correlated response that named the retained detach on the wire and then declined to act on it – a rotated generation, a dropped binding, an unknown participant, a capacity or backpressure refusal, a retirement older than the replay. None of them answers the detach, and none of them can be retried at the presented generation, so the replay is over; but the reason is not interchangeable, and a consumer choosing between re-attaching, re-enrolling, and backing off needs to tell them apart.
The refusing value is therefore retained WHOLE rather than classified. The canonical record already nests a wire frame for the other terminals, so losslessness here costs one tag and no new format.
Only the settlement path constructs this, and only from a value the crate
has already correlated to the retained detach, so the pairing cannot be
forged through the public API. Restore re-checks it anyway.
The value is boxed so this terminal does not widen every DetachReplayStatus
to the size of the largest server value.
Implementations§
Source§impl DetachAuthorityRefused
impl DetachAuthorityRefused
Sourcepub const fn value(&self) -> &ServerValue
pub const fn value(&self) -> &ServerValue
Borrows the exact refusing server value, retained without projection.
Trait Implementations§
Source§impl Clone for DetachAuthorityRefused
impl Clone for DetachAuthorityRefused
Source§fn clone(&self) -> DetachAuthorityRefused
fn clone(&self) -> DetachAuthorityRefused
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more