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 RefUnwindSafe for ForwardingTable
impl Send for ForwardingTable
impl Sync for ForwardingTable
impl Unpin for ForwardingTable
impl UnsafeUnpin for ForwardingTable
impl UnwindSafe for ForwardingTable
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