Expand description
Presets allow configuring an endpoint quickly with a chosen set of defaults.
§Example
use iroh::{Endpoint, RelayMode, Watcher, endpoint::presets};
let endpoint = Endpoint::builder(presets::N0).bind().await?;Structs§
- Empty
- An empty preset that doesn’t set anything on the builder.
- Minimal
with_crypto_provider - A preset that is almost empty, besides setting mandatory options.
- N0
with_crypto_provider - Configures the endpoint to use the n0 defaults
- N0Disable
Relay with_crypto_provider - Configures the endpoint to use the n0 defaults, but with relay mode disabled.