pub enum RemoteReconnectAttemptOutcome {
Connected {
provenance: ParticipantResponseProvenance,
},
Failed {
error: SdkError,
},
Refused {
permit: RemoteReconnectPermit,
reason: ReconnectAttemptRefusalReason,
},
FateRefused {
reason: ReconnectAttemptFateRefusalReason,
error: Option<SdkError>,
provenance: Option<ParticipantResponseProvenance>,
},
}Expand description
Result of a real connection attempt redeemed from one crate permit.
Variants§
Connected
The real attempt connected and the crate recorded online state.
Fields
§
provenance: ParticipantResponseProvenanceProvenance assigned to the new established socket.
Failed
The real attempt failed and the crate parked without timer authority.
Refused
The crate refused permit redemption and returned it unchanged.
Fields
§
permit: RemoteReconnectPermitReusable unchanged permit.
§
reason: ReconnectAttemptRefusalReasonClosed crate refusal reason.
FateRefused
The transport ran, but the crate retained the in-progress fate authority.
Fields
§
reason: ReconnectAttemptFateRefusalReasonClosed crate refusal reason.
§
provenance: Option<ParticipantResponseProvenance>New socket provenance when the attempted fate was Connected.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RemoteReconnectAttemptOutcome
impl RefUnwindSafe for RemoteReconnectAttemptOutcome
impl Send for RemoteReconnectAttemptOutcome
impl Sync for RemoteReconnectAttemptOutcome
impl Unpin for RemoteReconnectAttemptOutcome
impl UnsafeUnpin for RemoteReconnectAttemptOutcome
impl UnwindSafe for RemoteReconnectAttemptOutcome
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