#[non_exhaustive]pub struct DaemonConfig {Show 16 fields
pub data_dir: PathBuf,
pub network: Option<String>,
pub sync_interval: Duration,
pub observation_ttl: Duration,
pub retry_window: Duration,
pub backoff_base: Duration,
pub backoff_max: Duration,
pub rayon_threads: usize,
pub log_level: String,
pub log_file: Option<PathBuf>,
pub watch_debounce: Duration,
pub relay_mode: RelayMode,
pub media_listen: Option<SocketAddr>,
pub discovery: DiscoveryConfig,
pub address_lookup: Option<MemoryLookup>,
pub bep: BepConfig,
}Expand description
Configuration used to construct and run a daemon.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data_dir: PathBuf§network: Option<String>§sync_interval: Duration§observation_ttl: Duration§retry_window: DurationWindow after the first intent attempt during which failures are retried.
backoff_base: Duration§backoff_max: Duration§rayon_threads: usize§log_level: String§log_file: Option<PathBuf>§watch_debounce: Duration§relay_mode: RelayMode§media_listen: Option<SocketAddr>§discovery: DiscoveryConfig§address_lookup: Option<MemoryLookup>Shared address lookup for tests that need multiple daemons to discover each other.
bep: BepConfigSyncthing (BEP) relay configuration. When enabled, the daemon starts
a relay manager and installs its custom transport on the endpoint.
Implementations§
Trait Implementations§
Source§impl Clone for DaemonConfig
impl Clone for DaemonConfig
Source§impl Debug for DaemonConfig
impl Debug for DaemonConfig
Auto Trait Implementations§
impl Freeze for DaemonConfig
impl RefUnwindSafe for DaemonConfig
impl Send for DaemonConfig
impl Sync for DaemonConfig
impl Unpin for DaemonConfig
impl UnsafeUnpin for DaemonConfig
impl UnwindSafe for DaemonConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
Converts
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> ⓘ
Converts
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