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: EndpointRoleRole of this node
bootstrap_nodes: Vec<SocketAddr>Bootstrap nodes
enable_coordinator: boolEnable coordinator services
max_connections: usizeMax concurrent connections
connection_timeout: DurationConnection timeout
stats_interval: DurationStatistics interval
auth_config: AuthConfigAuthentication 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