pub enum ReconcileAction {
ApplyDesired,
ResubscribeMissing,
ScheduleReconnect,
}Expand description
What the owner should do for one connection after a Supervisor::reconcile pass.
The supervisor only names the action. The owner performs it.
Variants§
ApplyDesired
The connection is healthy. Make the wire match the desired set: send what
Supervisor::resubscribe_targets lists and cancel what was removed.
ResubscribeMissing
The connection has been quiet for a while. Re-send the subscriptions that are missing, without a reconnect.
ScheduleReconnect
The connection is dead. Close it and open a new one, then apply the desired set.
Trait Implementations§
Source§impl Clone for ReconcileAction
impl Clone for ReconcileAction
Source§fn clone(&self) -> ReconcileAction
fn clone(&self) -> ReconcileAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ReconcileAction
impl Debug for ReconcileAction
impl Eq for ReconcileAction
Source§impl PartialEq for ReconcileAction
impl PartialEq for ReconcileAction
Source§fn eq(&self, other: &ReconcileAction) -> bool
fn eq(&self, other: &ReconcileAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ReconcileAction
Auto Trait Implementations§
impl Freeze for ReconcileAction
impl RefUnwindSafe for ReconcileAction
impl Send for ReconcileAction
impl Sync for ReconcileAction
impl Unpin for ReconcileAction
impl UnsafeUnpin for ReconcileAction
impl UnwindSafe for ReconcileAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.