pub struct Config {Show 50 fields
pub rocksdb: Rocksdb,
pub server_name: OwnedServerName,
pub database_path: PathBuf,
pub tls: TlsConfig,
pub database_restore_backup: Option<u32>,
pub well_known: WellKnownConfig,
pub proxy: ProxyConfig,
pub rate_limiting: RateLimits,
pub test: BTreeSet<String>,
pub maintenance: bool,
pub listening: bool,
pub appservice_dir: Option<PathBuf>,
pub database_migrations: bool,
pub force_migration: bool,
pub storage_provider: BTreeMap<String, StorageProvider>,
pub registration_terms: BTreeMap<String, TermsPolicy>,
pub ldap: LdapConfig,
pub jwt: JwtConfig,
pub smtp: SmtpConfig,
pub appservice: BTreeMap<String, AppService>,
pub identity_provider: BTreeMap<String, IdentityProvider>,
catchall: BTreeMap<String, IgnoredAny>,
pub cache: Cache,
pub database: Database,
pub runtime: Runtime,
pub http: Http,
pub network: Network,
pub media: Media,
pub federation: Federation,
pub rooms: Rooms,
pub sending: Sending,
pub authentication: Authentication,
pub directory: Directory,
pub encryption: Encryption,
pub profile: Profile,
pub registration: Registration,
pub admin: Admin,
pub appservice_client: AppserviceClient,
pub client: Client,
pub compatibility: Compatibility,
pub configuration: Configuration,
pub logging: Logging,
pub presence: Presence,
pub push: Push,
pub read_receipts: ReadReceipts,
pub rendezvous: Rendezvous,
pub telemetry: Telemetry,
pub tracing: Tracing,
pub turn: Turn,
pub typing: Typing,
}Expand description
Global settings
Every setting lives under [global]. The first keys below name the
server and its storage; each [global.<name>] section further down is
optional and keeps its defaults when left out.
Before the first start, set server_name and check database_path.
The first start records server_name in the database, and a database
recorded under another name is refused, so changing the name later
means starting over with an empty database. database_path holds the
database and, by default, uploaded media.
Tips:
- No config file is read by default. Name one with
TUWUNEL_CONFIG(orCONDUWUIT_CONFIG,CONDUIT_CONFIG) or with-c/--config, which is repeatable and loads after it; later files win. A file that mixes bare keys with a[global]header is refused. - Environment variables override files:
TUWUNEL_plus the key path with__between levels, sodatabase.backup.pathbecomesTUWUNEL_DATABASE__BACKUP__PATH.-O key=valueoverrides both. - Keys marked
reloadable: yesapply onSIGUSR1or!admin server reload-config; others may need a restart. A reload that changesserver_namefails. - Misspelled keys are ignored, not rejected; most log a warning, and
configuration.error_on_unknown_opts = truemakes that fatal.
Fields§
§rocksdb: RocksdbRocksDB engine settings.
display: section
server_name: OwnedServerNameThe server_name is the pretty name of this server. It is used as a suffix for user and room IDs/aliases.
See the docs for reverse proxying and delegation: https://tuwunel.chat/deploying/generic.html#setting-up-the-reverse-proxy
Also see the [global.well_known] config section at the very bottom.
Examples of delegation:
- https://matrix.org/.well-known/matrix/server
- https://matrix.org/.well-known/matrix/client
YOU NEED TO EDIT THIS. THIS CANNOT BE CHANGED AFTER WITHOUT A DATABASE WIPE.
example: “girlboss.ceo”
database_path: PathBufThis is the only directory where tuwunel will save its data, including media. Note: this was previously “/var/lib/matrix-conduit”.
default: “/var/lib/tuwunel”
tls: TlsConfigConfigures direct TLS listeners.
Values are read from the separate [global.tls] section. Certificate
and key paths must be supplied together before TLS is enabled.
database_restore_backup: Option<u32>Restore this online database backup on startup, before the database is
opened. The value is a backup ID as listed by !admin server list-backups, or 0 for the most recent backup. Set by the
--restore-backup command line argument, and refused from a
configuration file, where it would repeat the restore on every
startup.
well_known: WellKnownConfigConfigures Matrix discovery documents and related endpoints.
Values are read from the separate [global.well_known] section. Client,
server, support, and MatrixRTC responses consume these settings.
proxy: ProxyConfigExamples:
-
No proxy (default):
proxy = "none" -
For global proxy, create the section at the bottom of this file:
[global.proxy] global = { url = "socks5h://localhost:9050" } -
To proxy some domains:
[global.proxy] [[global.proxy.by_domain]] url = "socks5h://localhost:9050" include = ["*.onion", "matrix.myspecial.onion"] exclude = ["*.myspecial.onion"]
Include vs. Exclude:
-
If include is an empty list, it is assumed to be
["*"]. -
If a domain matches both the exclude and include list, the proxy will only be used if it was included because of a more specific rule than it was excluded. In the above example, the proxy would be used for
ordinary.onion,matrix.myspecial.onion, but nothello.myspecial.onion.
default: “none”
rate_limiting: RateLimitsConfigures request rate limits, one [global.rate_limiting] subsection
per kind of request.
test: BTreeSet<String>Arbitrary argument vector for integration testing. Functionality in the server is altered or informed for the requirements of integration tests.
- “smoke” performs a shutdown after startup admin commands rather than hanging on client handling.
display: hidden
maintenance: boolIndicates the server has started in maintenance mode. Historically
maintenance mode has been enabled by the command line argument
--maintenance which then sets various configuration items such as
listening=false among others. That is still the case. This option was
only added as a single source of truth that --maintenance mode is
active.
This option must never be set manually.
display: hidden
listening: boolEnables listener sockets; can be set to false to disable listening. This option is intended for developer/diagnostic purposes only.
appservice_dir: Option<PathBuf>Directory containing appservice yaml registration files.
default: “”
database_migrations: boolApply pending database migrations on startup. This option is intended for developer debugging and testing only. Never set this option to false unless you have been instructed to do so. Setting this option to false may cause permanent damage and permanent loss of data.
Any new database migrations will not be applied on startup, and the database schema version will not be adjusted. These migrations and schema changes may be expected by the current codebase but may not be available when this option is set to false.
Setting this option to false is accepted only after the required local state memo invalidation has run once. Start once with this option true if startup reports that prerequisite missing. With the marker present, false continues to skip migrations as configured.
force_migration: boolOpen a database whose schema version is newer than this build supports.
A database reporting a higher schema version than this build is normally refused, since opening it stamps the schema down to this build’s version and may permanently lose data written by the newer build. Setting this to true overrides that refusal: the database opens, one-time migrations run, and the schema is stamped down to this build’s version.
It has no effect when the discovered version is at or below this build’s version, where migrations apply normally either way. It is also not needed to import a Conduit database or a fork of conduwuit; those are recognized by lineage and open without it.
This option is extremely dangerous and intended for developer debugging and testing only. Never set it unless you have been instructed to do so; it may cause permanent damage and permanent loss of data.
storage_provider: BTreeMap<String, StorageProvider>Defines named media storage providers.
Each map key names a provider, and each value selects a local or S3-compatible backend or disables the entry. Provider-specific settings live in separate sections.
registration_terms: BTreeMap<String, TermsPolicy>Defines policy documents users must accept during registration.
Each map key is the policy identifier exposed in the m.login.terms UIA
stage. An empty map leaves the terms stage disabled.
ldap: LdapConfigConfigures LDAP login integration.
Connection, bind, search, and attribute settings live in the separate
[global.ldap] section. LDAP authentication is disabled by default.
jwt: JwtConfigConfigures JSON Web Token login integration.
Key format, algorithm, claim validation, and user provisioning settings
live in [global.jwt]. Token login is disabled by default.
smtp: SmtpConfigConfigures outbound SMTP email delivery.
Providing a connection URI enables the email subsystem. Registration flags determine when a verified address is required.
appservice: BTreeMap<String, AppService>Defines inline application service registrations.
Each map key names one registration and supplies its default identifier. The contained settings are converted to Matrix application service data.
identity_provider: BTreeMap<String, IdentityProvider>Defines OpenID Connect identity provider registrations.
Each entry configures client credentials, discovery, and account
mapping. Its stable client_id identifies the provider while brand
selects provider-specific defaults and workarounds.
catchall: BTreeMap<String, IgnoredAny>§cache: CacheSettings for cache.
display: section
database: DatabaseSettings for database.
display: section
runtime: RuntimeSettings for runtime.
display: section
http: HttpSettings for http.
display: section
network: NetworkSettings for network.
display: section
media: MediaSettings for media.
display: section
federation: FederationSettings for federation.
display: section
rooms: RoomsSettings for rooms.
display: section
sending: SendingSettings for sending.
display: section
authentication: AuthenticationSettings for authentication.
display: section
directory: DirectorySettings for directory.
display: section
encryption: EncryptionSettings for encryption.
display: section
profile: ProfileSettings for profile.
display: section
registration: RegistrationSettings for registration.
display: section
admin: AdminSettings for admin.
display: section
appservice_client: AppserviceClientSettings for appservice client.
display: section
client: ClientSettings for client.
display: section
compatibility: CompatibilitySettings for compatibility.
display: section
configuration: ConfigurationSettings for configuration.
display: section
logging: LoggingSettings for logging.
display: section
presence: PresenceSettings for presence.
display: section
push: PushSettings for push.
display: section
read_receipts: ReadReceiptsSettings for read receipts.
display: section
rendezvous: RendezvousSettings for rendezvous.
display: section
telemetry: TelemetrySettings for telemetry.
display: section
tracing: TracingSettings for tracing.
display: section
turn: TurnSettings for turn.
display: section
typing: TypingSettings for typing.
display: section
Implementations§
Source§impl Config
impl Config
Sourcepub fn get_unix_socket_perms(&self) -> Result<u32>
pub fn get_unix_socket_perms(&self) -> Result<u32>
Interprets the configured Unix socket permission digits as an octal mode.
The returned value is suitable for applying to a newly created socket. An invalid octal digit produces a configuration error.
Source§impl Config
impl Config
Sourcepub fn get_bind_addrs(&self) -> Vec<SocketAddr>
pub fn get_bind_addrs(&self) -> Vec<SocketAddr>
Builds every configured TCP listener address.
The result is the Cartesian product of the configured hosts and ports. When neither TCP addresses nor a Unix socket are configured, loopback hosts apply.
Source§impl Config
impl Config
Sourcepub fn is_address_defaulted(&self) -> bool
pub fn is_address_defaulted(&self) -> bool
Whether the addresses to bind come from the built-in default rather than
the http.listen.address option.
The default is a guess that both loopback families exist on the host, so one of them failing to bind is tolerable where a configured address is not.
Source§impl Config
impl Config
Sourcepub fn require_federation(&self) -> Result
pub fn require_federation(&self) -> Result
Refuses a request that needs federation while federation is disabled.
Inbound and outbound requests fail with the same 403 M_FORBIDDEN, since
the refusal enforces the operator’s setting rather than reporting a fault.
Source§impl Config
impl Config
Sourcepub fn require_remote_permitted(&self, server_name: &ServerName) -> Result
pub fn require_remote_permitted(&self, server_name: &ServerName) -> Result
Refuses federation with a remote server while federation is disabled or the configuration forbids that server.
The forbidden-server check always permits the local server name. Either
refusal fails with the same 403 M_FORBIDDEN for inbound and outbound
requests.
Source§impl Config
impl Config
Sourcepub fn is_remote_permitted(&self, server_name: &ServerName) -> bool
pub fn is_remote_permitted(&self, server_name: &ServerName) -> bool
Determines whether federation with a remote server is allowed.
require_remote_permitted wraps this check; call this directly where
refusals are too frequent to build an error each time.
Source§impl Config
impl Config
Sourcepub fn is_forbidden_remote_server_name(&self, server_name: &ServerName) -> bool
pub fn is_forbidden_remote_server_name(&self, server_name: &ServerName) -> bool
Determines whether a remote server name is forbidden.
The local server name is always permitted. Otherwise a deny-list match or an active allow-list miss forbids the destination.
Source§impl Config
impl Config
Sourcepub fn require_supported_room_version(&self, version: &RoomVersionId) -> Result
pub fn require_supported_room_version(&self, version: &RoomVersionId) -> Result
Refuses a room version this configuration does not enable.
The refusal is M_INCOMPATIBLE_ROOM_VERSION, whose room_version field
names the refused version for the client or remote server.
Source§impl Config
impl Config
Sourcepub fn supported_room_version(&self, version: &RoomVersionId) -> bool
pub fn supported_room_version(&self, version: &RoomVersionId) -> bool
Reports whether a room version is enabled by this configuration.
Stable versions are always enabled. Unstable and experimental versions are included only when their respective configuration flags permit them.
Sourcepub fn supported_room_versions(
&self,
) -> impl Iterator<Item = (RoomVersionId, RoomVersionStability)> + '_
pub fn supported_room_versions( &self, ) -> impl Iterator<Item = (RoomVersionId, RoomVersionStability)> + '_
Iterates over the room versions enabled by this configuration.
Stable versions appear first, followed by permitted unstable and experimental versions. Experimental entries are advertised as unstable.
Source§impl Config
impl Config
Sourcepub fn login_terms_params(&self) -> Option<LoginTermsParams>
pub fn login_terms_params(&self) -> Option<LoginTermsParams>
Builds registration terms parameters from configured policy documents.
Policy identifiers and language keys are preserved in the Matrix UIA shape.
An empty policy map returns None and does not require a terms stage.
Source§impl Config
impl Config
Sourcepub fn load<'a, I>(paths: I) -> Result<Figment>
pub fn load<'a, I>(paths: I) -> Result<Figment>
Loads raw configuration from ordered file and environment sources.
Explicit paths follow config files selected through the supported environment variables, and later files override earlier files. Config values from the three environment namespaces take precedence over files.
Source§impl Config
impl Config
Sourcepub fn normalize<P: Provider>(provider: P) -> Result<impl Provider>
pub fn normalize<P: Provider>(provider: P) -> Result<impl Provider>
Normalizes one configuration source before it is combined with others.
Legacy paths retain source metadata and follow the same precedence as canonical paths. Conflicting spellings within one source are rejected. The returned provider supplies its snapshot to one combination operation.
Source§impl Config
impl Config
Sourcepub fn new(raw_config: &Figment) -> Result<Self>
pub fn new(raw_config: &Figment) -> Result<Self>
Extracts the typed configuration from the merged raw sources.
A rejection is reported against the configuration file when one was
loaded. With none loaded, the field detail is followed by a note that
no file was selected, naming --config and TUWUNEL_CONFIG. Keys the
schema does not know are recorded in catchall.
Source§impl Config
impl Config
Sourcepub fn password_hash_cost(&self) -> Cost
pub fn password_hash_cost(&self) -> Cost
Argon2id cost parameters for hashing a new password.
The three settings are interdependent, so they travel as a unit rather than being read one at a time. Verification never consults them: the cost of checking a password comes from the stored hash.
Source§impl Config
impl Config
Sourcepub fn lists_identity_providers(&self) -> bool
pub fn lists_identity_providers(&self) -> bool
Returns whether login screens list each identity provider by name.
authentication.login.single_sso and
authentication.login.sso_custom_providers_page each replace that list with
one single sign-on entry.
Source§impl Config
impl Config
Sourcepub fn allows_password_registration(&self) -> bool
pub fn allows_password_registration(&self) -> bool
Returns whether new accounts may be registered with a password.
Password registration needs both registration.enable and
authentication.login.with_password, since a password account on a server
refusing password login could never sign in again. Registration through an
identity provider follows that provider’s own registration option instead.
Source§impl Config
impl Config
Sourcepub fn storage_provider_sections(
&self,
) -> impl Iterator<Item = ProviderSection<'_>>
pub fn storage_provider_sections( &self, ) -> impl Iterator<Item = ProviderSection<'_>>
Lists the storage provider sections the storage service builds from.
These are the configured sections plus the built-in local media
provider, which keeps media in the media directory under
database_path and is left out when a media section replaces it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> ExpectInto for T
impl<T> ExpectInto for T
Source§impl<T> Expected for T
impl<T> Expected for T
Source§fn expected_add(self, rhs: Self) -> Selfwhere
Self: CheckedAdd + Sized,
fn expected_add(self, rhs: Self) -> Selfwhere
Self: CheckedAdd + Sized,
rhs with an expectation that the operation is valid. Read moreSource§fn expected_sub(self, rhs: Self) -> Selfwhere
Self: CheckedSub + Sized,
fn expected_sub(self, rhs: Self) -> Selfwhere
Self: CheckedSub + Sized,
rhs with an expectation that the operation is valid. Read moreSource§fn expected_mul(self, rhs: Self) -> Selfwhere
Self: CheckedMul + Sized,
fn expected_mul(self, rhs: Self) -> Selfwhere
Self: CheckedMul + Sized,
rhs with an expectation that the operation is valid. Read moreSource§fn expected_div(self, rhs: Self) -> Selfwhere
Self: CheckedDiv + Sized,
fn expected_div(self, rhs: Self) -> Selfwhere
Self: CheckedDiv + Sized,
rhs with an expectation that the operation is valid. Read moreSource§fn expected_rem(self, rhs: Self) -> Selfwhere
Self: CheckedRem + Sized,
fn expected_rem(self, rhs: Self) -> Selfwhere
Self: CheckedRem + Sized,
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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 moreimpl<T> JsonCastable<CanonicalJsonValue> for T
impl<T> JsonCastable<Value> for T
§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the foreground set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red() and
green(), which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg():
use yansi::{Paint, Color};
painted.fg(Color::White);Set foreground color to white using white().
use yansi::Paint;
painted.white();§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self with the background set to
value.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red() and
on_green(), which have the same functionality but
are pithier.
§Example
Set background color to red using fg():
use yansi::{Paint, Color};
painted.bg(Color::Red);Set background color to red using on_red().
use yansi::Paint;
painted.on_red();§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling [Attribute] value.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold() and
underline(), which have the same functionality
but are pithier.
§Example
Make text bold using attr():
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);Make text bold using using bold().
use yansi::Paint;
painted.bold();§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi [Quirk] value.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask() and
wrap(), which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk():
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);Enable wrapping using wrap().
use yansi::Paint;
painted.wrap();§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
fn clear(&self) -> Painted<&T>
renamed to resetting() due to conflicts with Vec::clear().
The clear() method will be removed in a future release.
§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the [Condition] value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted only when both stdout and stderr are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn add_extension<T>(self, value: T) -> AddExtension<Self, T>where
Self: Sized,
fn add_extension<T>(self, value: T) -> AddExtension<Self, T>where
Self: Sized,
§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
§fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
fn follow_redirects(self) -> FollowRedirect<Self>where
Self: Sized,
§fn sensitive_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>where
Self: Sized,
fn sensitive_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<SetSensitiveResponseHeaders<Self>>where
Self: Sized,
§fn sensitive_request_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<Self>where
Self: Sized,
fn sensitive_request_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveRequestHeaders<Self>where
Self: Sized,
§fn sensitive_response_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveResponseHeaders<Self>where
Self: Sized,
fn sensitive_response_headers(
self,
headers: impl IntoIterator<Item = HeaderName>,
) -> SetSensitiveResponseHeaders<Self>where
Self: Sized,
§fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn override_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
§fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn append_request_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
§fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
fn insert_request_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetRequestHeader<Self, M>where
Self: Sized,
§fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn override_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
§fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn append_response_header<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
§fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
fn insert_response_header_if_not_present<M>(
self,
header_name: HeaderName,
make: M,
) -> SetResponseHeader<Self, M>where
Self: Sized,
§fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
fn catch_panic(self) -> CatchPanic<Self, DefaultResponseForPanic>where
Self: Sized,
500 Internal Server responses. Read moreSource§impl<T> Tried for T
impl<T> Tried for T
Source§fn try_add(self, rhs: Self) -> Result<Self>where
Self: CheckedAdd + Sized,
fn try_add(self, rhs: Self) -> Result<Self>where
Self: CheckedAdd + Sized,
rhs with checked arithmetic. Read moreSource§fn try_sub(self, rhs: Self) -> Result<Self>where
Self: CheckedSub + Sized,
fn try_sub(self, rhs: Self) -> Result<Self>where
Self: CheckedSub + Sized,
rhs with checked arithmetic. Read moreSource§fn try_mul(self, rhs: Self) -> Result<Self>where
Self: CheckedMul + Sized,
fn try_mul(self, rhs: Self) -> Result<Self>where
Self: CheckedMul + Sized,
rhs with checked arithmetic. Read more