pub struct QuicNodeConfig {
pub role: EndpointRole,
pub bootstrap_nodes: Vec<SocketAddr>,
pub enable_coordinator: bool,
pub max_connections: usize,
pub connection_timeout: Duration,
pub stats_interval: Duration,
pub auth_config: AuthConfig,
pub bind_addr: Option<SocketAddr>,
}
Expand description
Configuration for QUIC P2P node
Fields§
§role: EndpointRole
Role of this node
bootstrap_nodes: Vec<SocketAddr>
Bootstrap nodes
enable_coordinator: bool
Enable coordinator services
max_connections: usize
Max concurrent connections
connection_timeout: Duration
Connection timeout
stats_interval: Duration
Statistics interval
auth_config: AuthConfig
Authentication configuration
bind_addr: Option<SocketAddr>
Bind address for the node
Trait Implementations§
Source§impl Clone for QuicNodeConfig
impl Clone for QuicNodeConfig
Source§fn clone(&self) -> QuicNodeConfig
fn clone(&self) -> QuicNodeConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 QuicNodeConfig
impl Debug for QuicNodeConfig
Auto Trait Implementations§
impl Freeze for QuicNodeConfig
impl RefUnwindSafe for QuicNodeConfig
impl Send for QuicNodeConfig
impl Sync for QuicNodeConfig
impl Unpin for QuicNodeConfig
impl UnwindSafe for QuicNodeConfig
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