Skip to main content

ForwardingTable

Struct ForwardingTable 

Source
pub struct ForwardingTable { /* private fields */ }
Expand description

Dynamic forwarding state shared by the control plane and data-plane router.

Implementations§

Source§

impl ForwardingTable

Source

pub fn register_module_connection( &self, connection_id: ConnectionId, module_id: String, negotiated_ver: u8, concurrency: Concurrency, sink: FrameSink, ) -> Result<ModuleEndpointId, ForwardingError>

Source

pub fn active_binding_count(&self) -> Result<usize, ForwardingError>

Source

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.

Source

pub fn has_route_channel( &self, route_channel: u16, ) -> Result<bool, ForwardingError>

Trait Implementations§

Source§

impl Debug for ForwardingTable

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ForwardingTable

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl !Freeze for ForwardingTable

§

impl Forget for ForwardingTable

§

impl Move for ForwardingTable

§

impl RefUnwindSafe for ForwardingTable
where 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 ForwardingTable
where 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 ForwardingTable
where 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 ForwardingTable
where 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 ForwardingTable
where 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 ForwardingTable
where 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> NoneValue for T
where T: Default,

Source§

type NoneType = T

Source§

fn null_value() -> T

The none-equivalent value.
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more