pub struct RecoveryState {
pub request_id: RequestId,
pub response: RecoveryResponse,
}Expand description
Correlated reply retaining the core’s nonce-scoped normal-state evidence.
Fields§
§request_id: RequestIdEchoed link exchange ID, independently checked against the current request.
response: RecoveryResponseImmutable response for this recovery nonce and normal view, not a vote.
Implementations§
Source§impl RecoveryState
impl RecoveryState
Sourcepub fn validate_response(
self,
request: RecoveryRequest,
) -> Result<(), WireError>
pub fn validate_response( self, request: RecoveryRequest, ) -> Result<(), WireError>
Match both the outstanding link request and the logical recovery attempt.
Call after authenticated peer/session decoding. The responder’s actual normal view can differ from the request hint; the recovery core selects the highest observed view. Matching alone grants no voting authority.
Trait Implementations§
Source§impl Clone for RecoveryState
impl Clone for RecoveryState
impl Copy for RecoveryState
Source§impl Debug for RecoveryState
impl Debug for RecoveryState
impl Eq for RecoveryState
Source§impl PartialEq for RecoveryState
impl PartialEq for RecoveryState
impl StructuralPartialEq for RecoveryState
Auto Trait Implementations§
impl Freeze for RecoveryState
impl RefUnwindSafe for RecoveryState
impl Send for RecoveryState
impl Sync for RecoveryState
impl Unpin for RecoveryState
impl UnsafeUnpin for RecoveryState
impl UnwindSafe for RecoveryState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more