pub struct RoutingDecision { /* private fields */ }Expand description
Routing decision produced by a routing function.
Implementations§
Source§impl RoutingDecision
impl RoutingDecision
Sourcepub const fn select(consumer: ConsumerId) -> Self
pub const fn select(consumer: ConsumerId) -> Self
A decision that selects consumer.
Sourcepub const fn selected(&self) -> Option<&ConsumerId>
pub const fn selected(&self) -> Option<&ConsumerId>
Returns the selected consumer, if any.
Sourcepub const fn is_selected(&self) -> bool
pub const fn is_selected(&self) -> bool
Returns true when a consumer was selected.
Trait Implementations§
Source§impl Clone for RoutingDecision
impl Clone for RoutingDecision
Source§fn clone(&self) -> RoutingDecision
fn clone(&self) -> RoutingDecision
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 RoutingDecision
impl Debug for RoutingDecision
Source§impl Default for RoutingDecision
impl Default for RoutingDecision
Source§fn default() -> RoutingDecision
fn default() -> RoutingDecision
Returns the “default value” for a type. Read more
impl Eq for RoutingDecision
Source§impl PartialEq for RoutingDecision
impl PartialEq for RoutingDecision
Source§fn eq(&self, other: &RoutingDecision) -> bool
fn eq(&self, other: &RoutingDecision) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for RoutingDecision
Auto Trait Implementations§
impl Freeze for RoutingDecision
impl RefUnwindSafe for RoutingDecision
impl Send for RoutingDecision
impl Sync for RoutingDecision
impl Unpin for RoutingDecision
impl UnsafeUnpin for RoutingDecision
impl UnwindSafe for RoutingDecision
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
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§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
Compare self to
key and return true if they are equal.