pub enum RemoteReconnectPermitOutcome {
Permitted {
permit: RemoteReconnectPermit,
result: ReconnectDelayResult,
},
Refused {
reason: ReconnectPermitRefusalReason,
result: ReconnectDelayResult,
},
}Expand description
Event-driven reconnect permit decision; there is no delay or timer arm.
Variants§
Permitted
The crate minted one one-use permit.
Fields
§
permit: RemoteReconnectPermitOpaque permit for one real connection attempt.
§
result: ReconnectDelayResultLegacy-named crate result whose value is event-only.
Refused
Existing authority was retained.
Fields
§
reason: ReconnectPermitRefusalReasonClosed crate refusal reason.
§
result: ReconnectDelayResultEvent-only crate result.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RemoteReconnectPermitOutcome
impl RefUnwindSafe for RemoteReconnectPermitOutcome
impl Send for RemoteReconnectPermitOutcome
impl Sync for RemoteReconnectPermitOutcome
impl Unpin for RemoteReconnectPermitOutcome
impl UnsafeUnpin for RemoteReconnectPermitOutcome
impl UnwindSafe for RemoteReconnectPermitOutcome
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