pub enum RoutedQueues {
NoRoutedVersion,
Declared(Vec<String>),
Unreadable(String),
}Expand description
What the routed resident version declares as its task queue.
Three distinguishable answers, because “the routed assistant is not on the embedded queue” and “nobody could read what queue it is on” must never be reported as the same thing: one is a migration to announce, the other is an unreadable catalog entry.
Variants§
NoRoutedVersion
No resident version holds the route, so there is no queue to name.
Declared(Vec<String>)
The routed version’s contract declares these queues, in contract order.
Unreadable(String)
The routed version’s queues could not be read. The reason, verbatim.
Implementations§
Source§impl RoutedQueues
impl RoutedQueues
Sourcepub fn moves_to(&self, embedded_queue: &str) -> bool
pub fn moves_to(&self, embedded_queue: &str) -> bool
Whether a deploy of the embedded document would move the assistant onto a queue the routed version does not already serve.
Only Self::Declared can answer: an unreadable entry and an absent
route both mean “unknown”, and an unknown is never reported as a move.
Trait Implementations§
Source§impl Clone for RoutedQueues
impl Clone for RoutedQueues
Source§fn clone(&self) -> RoutedQueues
fn clone(&self) -> RoutedQueues
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RoutedQueues
impl Debug for RoutedQueues
impl Eq for RoutedQueues
Source§impl PartialEq for RoutedQueues
impl PartialEq for RoutedQueues
impl StructuralPartialEq for RoutedQueues
Auto Trait Implementations§
impl Freeze for RoutedQueues
impl RefUnwindSafe for RoutedQueues
impl Send for RoutedQueues
impl Sync for RoutedQueues
impl Unpin for RoutedQueues
impl UnsafeUnpin for RoutedQueues
impl UnwindSafe for RoutedQueues
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request