pub struct ForwardingTable { /* private fields */ }Expand description
Dynamic forwarding state shared by the control plane and data-plane router.
Implementations§
Source§impl ForwardingTable
impl ForwardingTable
pub fn register_module_connection( &self, connection_id: ConnectionId, module_id: String, negotiated_ver: u8, concurrency: Concurrency, sink: FrameSink, ) -> Result<ModuleEndpointId, ForwardingError>
pub fn active_binding_count(&self) -> Result<usize, ForwardingError>
Sourcepub fn client_route_concentration(
&self,
) -> Result<(usize, usize), ForwardingError>
pub fn client_route_concentration( &self, ) -> Result<(usize, usize), ForwardingError>
How many distinct client connections hold at least one committed route, alongside the largest number of routes any single connection holds.
connected_clients alone cannot distinguish many clients with a route
each from one client accumulating hundreds, and those have opposite
causes. Reading it required an out-of-band lsof during a live
investigation, and the count of connections was mistaken for a count of
client processes — which sent two of us after cleanup paths that were
working correctly.
pub fn has_route_channel( &self, route_channel: u16, ) -> Result<bool, ForwardingError>
Trait Implementations§
Source§impl Debug for ForwardingTable
impl Debug for ForwardingTable
Auto Trait Implementations§
impl !Freeze for ForwardingTable
impl Forget for ForwardingTable
impl Move for ForwardingTable
impl RefUnwindSafe for ForwardingTablewhere
Mutex<Option<Arc<Sender<FlushCount>>>>: RefUnwindSafe,
Atomic<usize>: RefUnwindSafe,
Atomic<bool>: RefUnwindSafe,
Notify: RefUnwindSafe,
Atomic<u8>: RefUnwindSafe,
RwLock<Admission>: RefUnwindSafe,
AtomicUsize: RefUnwindSafe,
RwLock<ForwardingInner>: RefUnwindSafe,
Mutex<HashMap<ConnectionId, HashMap<(u16, &'static str), FrameDropWarning>>>: RefUnwindSafe,
Mutex<HashMap<ConnectionId, ConnectionCloseSender>>: RefUnwindSafe,
Mutex<State>: RefUnwindSafe,
Mutex<ReaderDiagnostics>: RefUnwindSafe,
Atomic<u64>: RefUnwindSafe,
Mutex<HashMap<String, u64>>: RefUnwindSafe,
Mutex<DropWindow>: RefUnwindSafe,
Mutex<HashMap<String, ModuleBreakerState>>: RefUnwindSafe,
Mutex<RouteBindConcurrencyState>: RefUnwindSafe,
Mutex<State>: RefUnwindSafe,
impl Send for ForwardingTablewhere
Mutex<Option<Arc<Sender<FlushCount>>>>: Send,
Atomic<usize>: Send,
Atomic<bool>: Send,
AtomicUsize: Send,
Mutex<LinkedList<Waiter, Waiter>>: Send,
Atomic<u8>: Send,
Arc<Shared<Admission>>: Send,
Arc<RwLock<ForwardingInner>>: Send,
Mutex<HashMap<ConnectionId, HashMap<(u16, &'static str), FrameDropWarning>>>: Send,
Mutex<HashMap<ConnectionId, ConnectionCloseSender>>: Send,
Arc<Mutex<State>>: Send,
Arc<Mutex<ReaderDiagnostics>>: Send,
Arc<Atomic<u64>>: Send,
Arc<Mutex<HashMap<String, u64>>>: Send,
Arc<Mutex<DropWindow>>: Send,
Arc<Mutex<HashMap<String, ModuleBreakerState>>>: Send,
Arc<Mutex<RouteBindConcurrencyState>>: Send,
Arc<RouteOutageTracker>: Send,
impl Sync for ForwardingTablewhere
Mutex<Option<Arc<Sender<FlushCount>>>>: Sync,
Atomic<usize>: Sync,
Atomic<bool>: Sync,
AtomicUsize: Sync,
Mutex<LinkedList<Waiter, Waiter>>: Sync,
Atomic<u8>: Sync,
Arc<Shared<Admission>>: Sync,
Arc<RwLock<ForwardingInner>>: Sync,
Mutex<HashMap<ConnectionId, HashMap<(u16, &'static str), FrameDropWarning>>>: Sync,
Mutex<HashMap<ConnectionId, ConnectionCloseSender>>: Sync,
Arc<Mutex<State>>: Sync,
Arc<Mutex<ReaderDiagnostics>>: Sync,
Arc<Atomic<u64>>: Sync,
Arc<Mutex<HashMap<String, u64>>>: Sync,
Arc<Mutex<DropWindow>>: Sync,
Arc<Mutex<HashMap<String, ModuleBreakerState>>>: Sync,
Arc<Mutex<RouteBindConcurrencyState>>: Sync,
Arc<RouteOutageTracker>: Sync,
impl Unpin for ForwardingTablewhere
Align4<u32>: Unpin,
Align1<u8>: Unpin,
Arc<Sender<FlushCount>>: Unpin,
Align8<usize>: Unpin,
*const Waiter is !null: Unpin,
*const Waiter: Unpin,
Arc<Shared<Admission>>: Unpin,
Arc<RwLock<ForwardingInner>>: Unpin,
*const u8 is !null: Unpin,
&'static str: Unpin,
Arc<Inner<Signal>>: Unpin,
Arc<Sender<usize>>: Unpin,
Arc<Mutex<State>>: Unpin,
Arc<Mutex<ReaderDiagnostics>>: Unpin,
Arc<Atomic<u64>>: Unpin,
Arc<Mutex<HashMap<String, u64>>>: Unpin,
Arc<Mutex<DropWindow>>: Unpin,
Arc<Mutex<HashMap<String, ModuleBreakerState>>>: Unpin,
Arc<Mutex<RouteBindConcurrencyState>>: Unpin,
Arc<RouteOutageTracker>: Unpin,
impl UnsafeUnpin for ForwardingTablewhere
Align4<u32>: UnsafeUnpin,
Align1<u8>: UnsafeUnpin,
*const ArcInner<Sender<FlushCount>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Sender<FlushCount>>>: UnsafeUnpin,
Align8<usize>: UnsafeUnpin,
*const Waiter is !null: UnsafeUnpin,
PhantomData<*const Waiter>: UnsafeUnpin,
*const ArcInner<Shared<Admission>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Shared<Admission>>>: UnsafeUnpin,
*const ArcInner<RwLock<ForwardingInner>> is !null: UnsafeUnpin,
PhantomData<ArcInner<RwLock<ForwardingInner>>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(ConnectionId, HashMap<(u16, &'static str), FrameDropWarning>)>: UnsafeUnpin,
PhantomData<(ConnectionId, ConnectionCloseSender)>: UnsafeUnpin,
*const ArcInner<Mutex<State>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<State>>>: UnsafeUnpin,
*const ArcInner<Mutex<ReaderDiagnostics>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<ReaderDiagnostics>>>: UnsafeUnpin,
*const ArcInner<Atomic<u64>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Atomic<u64>>>: UnsafeUnpin,
*const ArcInner<Mutex<HashMap<String, u64>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<HashMap<String, u64>>>>: UnsafeUnpin,
*const ArcInner<Mutex<DropWindow>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<DropWindow>>>: UnsafeUnpin,
*const ArcInner<Mutex<HashMap<String, ModuleBreakerState>>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<HashMap<String, ModuleBreakerState>>>>: UnsafeUnpin,
*const ArcInner<Mutex<RouteBindConcurrencyState>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<RouteBindConcurrencyState>>>: UnsafeUnpin,
*const ArcInner<RouteOutageTracker> is !null: UnsafeUnpin,
PhantomData<ArcInner<RouteOutageTracker>>: UnsafeUnpin,
impl UnwindSafe for ForwardingTablewhere
Mutex<Option<Arc<Sender<FlushCount>>>>: UnwindSafe,
Align8<usize>: UnwindSafe,
Align1<u8>: UnwindSafe,
Notify: UnwindSafe,
Arc<Shared<Admission>>: UnwindSafe,
Arc<RwLock<ForwardingInner>>: UnwindSafe,
Mutex<HashMap<ConnectionId, HashMap<(u16, &'static str), FrameDropWarning>>>: UnwindSafe,
Mutex<HashMap<ConnectionId, ConnectionCloseSender>>: UnwindSafe,
Arc<Mutex<State>>: UnwindSafe,
Arc<Mutex<ReaderDiagnostics>>: UnwindSafe,
Arc<Atomic<u64>>: UnwindSafe,
Arc<Mutex<HashMap<String, u64>>>: UnwindSafe,
Arc<Mutex<DropWindow>>: UnwindSafe,
Arc<Mutex<HashMap<String, ModuleBreakerState>>>: UnwindSafe,
Arc<Mutex<RouteBindConcurrencyState>>: UnwindSafe,
Arc<RouteOutageTracker>: UnwindSafe,
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