pub struct Config {
pub product_name: String,
pub alias: String,
pub port: u16,
pub device_type: String,
pub device_model: String,
pub save_dir: PathBuf,
pub trust_path: PathBuf,
pub user_agent: String,
pub quarantine_agent: String,
pub temp_suffix: String,
pub log_prefix: String,
pub policy: Policy,
}Expand description
What the host configures. Every string here is the host’s own choice: the crate never names a product.
Fields§
§product_name: StringThe host’s product name, reported in Snapshot::product.
alias: StringHow other devices list this device.
port: u16Listen port (TLS). 0 picks a free port; Service::bound_port reports it.
device_type: StringDevice class announced to others: “desktop”, “mobile”, “web”, “headless” or “server”.
device_model: StringModel announced to others (empty for none).
save_dir: PathBufWhere received files go.
trust_path: PathBufThe JSON trust store file. Created on the first change.
user_agent: StringSent as the HTTP User-Agent on every outgoing request.
quarantine_agent: StringWritten into the macOS quarantine attribute as the agent name.
temp_suffix: StringSuffix of the temporary file a receive is written to until it is complete (“.pulse-part” for Pulse).
log_prefix: StringPrefix of the diagnostic lines written to stderr (e.g. “pulse sharing:”).
policy: PolicyLimits and folder names. Policy::default() is Pulse’s current behaviour.