OptionsConfiguration

Struct OptionsConfiguration 

Source
pub struct OptionsConfiguration {
Show 57 fields pub listen_address: Vec<String>, pub global_announce_servers: Vec<String>, pub global_annouce_enabled: bool, pub local_announce_enabled: bool, pub local_announce_port: i64, pub local_announce_mc_addr: String, pub max_send_kbps: i64, pub max_recv_kbps: i64, pub reconnection_interval_s: i64, pub relays_enabled: bool, pub relay_reconnect_interval_m: i64, pub start_browser: bool, pub nat_enabled: bool, pub nat_lease_minutes: i64, pub nat_renewal_minutes: i64, pub nat_timeout_seconds: i64, pub ur_accepted: i64, pub ur_screen: i64, pub ur_unique_id: String, pub ur_url: String, pub ur_post_insecurely: bool, pub ur_initial_dleay_s: i64, pub auto_upgraade_interval_h: i64, pub upgrade_to_pre_releases: bool, pub keep_temporaries_h: i64, pub cache_ignored_files: bool, pub progress_update_inteval_s: i64, pub limit_bandwidth_in_lan: bool, pub min_home_disk_free: Size, pub releases_url: String, pub always_local_nets: Vec<String>, pub overwrite_remote_device_names_on_connect: bool, pub temp_index_min_blocks: i64, pub unacked_notifications_ids: Vec<String>, pub traffic_class: i64, pub set_low_priority: bool, pub max_folder_concurrency: i64, pub cr_url: String, pub crash_reporting_enabled: bool, pub stun_keepalive_start_s: i64, pub stun_keepalive_min_s: i64, pub stun_servers: Vec<String>, pub database_tuning: Tuning, pub max_concurrent_incoming_requests_ki_b: i64, pub announce_lan_addresses: bool, pub send_full_index_on_upgrade: bool, pub feature_flags: Vec<String>, pub audit_enabled: bool, pub audit_file: String, pub connection_limit_enough: i64, pub connection_limit_max: i64, pub connection_priority_tcp_lan: i64, pub connection_priority_quic_lan: i64, pub connection_priority_tcp_wan: i64, pub connection_priority_quic_wan: i64, pub connection_priority_relay: i64, pub connection_priority_upgrade_threshold: i64,
}

Fields§

§listen_address: Vec<String>§global_announce_servers: Vec<String>§global_annouce_enabled: bool§local_announce_enabled: bool§local_announce_port: i64§local_announce_mc_addr: String§max_send_kbps: i64§max_recv_kbps: i64§reconnection_interval_s: i64§relays_enabled: bool§relay_reconnect_interval_m: i64§start_browser: bool§nat_enabled: bool§nat_lease_minutes: i64§nat_renewal_minutes: i64§nat_timeout_seconds: i64§ur_accepted: i64§ur_screen: i64§ur_unique_id: String§ur_url: String§ur_post_insecurely: bool§ur_initial_dleay_s: i64§auto_upgraade_interval_h: i64§upgrade_to_pre_releases: bool§keep_temporaries_h: i64§cache_ignored_files: bool§progress_update_inteval_s: i64§limit_bandwidth_in_lan: bool§min_home_disk_free: Size§releases_url: String§always_local_nets: Vec<String>§overwrite_remote_device_names_on_connect: bool§temp_index_min_blocks: i64§unacked_notifications_ids: Vec<String>§traffic_class: i64§set_low_priority: bool§max_folder_concurrency: i64§cr_url: String§crash_reporting_enabled: bool§stun_keepalive_start_s: i64§stun_keepalive_min_s: i64§stun_servers: Vec<String>§database_tuning: Tuning§max_concurrent_incoming_requests_ki_b: i64§announce_lan_addresses: bool§send_full_index_on_upgrade: bool§feature_flags: Vec<String>§audit_enabled: bool§audit_file: String§connection_limit_enough: i64§connection_limit_max: i64§connection_priority_tcp_lan: i64§connection_priority_quic_lan: i64§connection_priority_tcp_wan: i64§connection_priority_quic_wan: i64§connection_priority_relay: i64§connection_priority_upgrade_threshold: i64

Trait Implementations§

Source§

impl Clone for OptionsConfiguration

Source§

fn clone(&self) -> OptionsConfiguration

Returns a duplicate of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for OptionsConfiguration

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for OptionsConfiguration

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for OptionsConfiguration

Source§

fn eq(&self, other: &OptionsConfiguration) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for OptionsConfiguration

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for OptionsConfiguration

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Any for T
where T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for T
where T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for T
where T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> CloneToUninit for T
where T: Clone,

§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
§

impl<T, U> Into<U> for T
where U: From<T>,

§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,