Module presets

Module presets 

Source
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.
Minimalwith_crypto_provider
A preset that is almost empty, besides setting mandatory options.
N0with_crypto_provider
Configures the endpoint to use the n0 defaults
N0DisableRelaywith_crypto_provider
Configures the endpoint to use the n0 defaults, but with relay mode disabled.

Traits§

Preset
A reusable bundle of endpoint Builder configuration.