pub struct NodeOptions {
pub key: Option<[u8; 32]>,
pub networking: NetworkingOptions,
pub discovery: DiscoveryOptions,
pub pool: PoolOptions,
pub streaming: StreamingOptions,
pub capabilities: Vec<String>,
pub keylog: bool,
pub max_header_size: Option<usize>,
pub server_limits: ServerLimits,
pub compression: Option<CompressionOptions>,
}Expand description
Configuration passed to IrohEndpoint::bind.
Fields§
§key: Option<[u8; 32]>32-byte Ed25519 secret key. Generate a fresh one when None.
networking: NetworkingOptionsNetworking / QUIC transport configuration.
discovery: DiscoveryOptionsDNS-based peer discovery configuration.
pool: PoolOptionsConnection-pool tuning.
streaming: StreamingOptionsBody-streaming and handle-store configuration.
capabilities: Vec<String>ALPN capabilities to advertise. Empty = advertise iroh-http/2 and iroh-http/2-duplex.
keylog: boolWrite TLS session keys to $SSLKEYLOGFILE. Dev/debug only.
max_header_size: Option<usize>Maximum byte size of the HTTP/1.1 request or response head. None or 0 = 65536.
server_limits: ServerLimitsServer-side limits forwarded to the serve loop.
compression: Option<CompressionOptions>Trait Implementations§
Source§impl Clone for NodeOptions
impl Clone for NodeOptions
Source§fn clone(&self) -> NodeOptions
fn clone(&self) -> NodeOptions
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 NodeOptions
impl Debug for NodeOptions
Source§impl Default for NodeOptions
impl Default for NodeOptions
Source§fn default() -> NodeOptions
fn default() -> NodeOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NodeOptions
impl RefUnwindSafe for NodeOptions
impl Send for NodeOptions
impl Sync for NodeOptions
impl Unpin for NodeOptions
impl UnsafeUnpin for NodeOptions
impl UnwindSafe for NodeOptions
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