pub struct RouterConfig {
pub local_id: u64,
pub bind_addr: SocketAddr,
pub max_queue_depth: usize,
pub fair_quantum: usize,
pub idle_timeout_ns: u64,
pub priority_bypass: bool,
}Expand description
Router configuration
Fields§
§local_id: u64Local node ID
bind_addr: SocketAddrBind address
max_queue_depth: usizeMaximum queue depth per stream
fair_quantum: usizeFair scheduling quantum (packets per stream per round)
idle_timeout_ns: u64Idle stream timeout (nanoseconds)
priority_bypass: boolEnable priority queue bypass
Implementations§
Source§impl RouterConfig
impl RouterConfig
Sourcepub fn new(local_id: u64, bind_addr: SocketAddr) -> Self
pub fn new(local_id: u64, bind_addr: SocketAddr) -> Self
Create a new router config with defaults
Trait Implementations§
Source§impl Clone for RouterConfig
impl Clone for RouterConfig
Source§fn clone(&self) -> RouterConfig
fn clone(&self) -> RouterConfig
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 RouterConfig
impl Debug for RouterConfig
Auto Trait Implementations§
impl Freeze for RouterConfig
impl RefUnwindSafe for RouterConfig
impl Send for RouterConfig
impl Sync for RouterConfig
impl Unpin for RouterConfig
impl UnsafeUnpin for RouterConfig
impl UnwindSafe for RouterConfig
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