pub struct RoutingTable { /* private fields */ }Expand description
Per-call-site profile used by routing decisions.
Implementations§
Source§impl RoutingTable
impl RoutingTable
Sourcepub fn observe_sort_u32(
&self,
call_site: Cow<'_, str>,
values: &[u32],
) -> Result<SortBackend, String>
pub fn observe_sort_u32( &self, call_site: Cow<'_, str>, values: &[u32], ) -> Result<SortBackend, String>
Record one call-site observation and return the selected backend.
§Errors
Returns an error if the routing table mutex is poisoned.
Sourcepub fn distribution(&self, call_site: &str) -> Option<Distribution>
pub fn distribution(&self, call_site: &str) -> Option<Distribution>
Return the last observed distribution for a call site.
Trait Implementations§
Source§impl Debug for RoutingTable
impl Debug for RoutingTable
Source§impl Default for RoutingTable
impl Default for RoutingTable
Source§fn default() -> RoutingTable
fn default() -> RoutingTable
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for RoutingTable
impl Freeze for RoutingTable
impl Send for RoutingTable
impl Sync for RoutingTable
impl Unpin for RoutingTable
impl UnsafeUnpin for RoutingTable
impl UnwindSafe for RoutingTable
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