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 max_response_body_bytes: Option<usize>,
pub compression: Option<CompressionOptions>,
}Expand description
Configuration passed to super::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.
Valid values: ALPN_STR ("iroh-http/2") and
ALPN_DUPLEX_STR ("iroh-http/2-duplex").
When empty (the default), both protocols are advertised. When non-empty,
the base protocol (iroh-http/2) is automatically injected if not
already present. Unknown values cause super::IrohEndpoint::bind to
return an error.
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 = 65536. Some(0) is rejected.
max_response_body_bytes: Option<usize>Maximum decompressed response body bytes the client will accept per
outgoing fetch(). Default: 256 MiB. Protects against compression
bombs from malicious peers.
compression: Option<CompressionOptions>Trait Implementations§
Source§impl Clone for NodeOptions
impl Clone for NodeOptions
Source§fn clone(&self) -> NodeOptions
fn clone(&self) -> NodeOptions
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more