pub struct Relay {
pub mode: RelayMode,
pub instance: RelayInstance,
pub upstream: UpstreamDescriptor<'static>,
pub host: IpAddr,
pub port: u16,
pub tls_port: Option<u16>,
pub tls_identity_path: Option<PathBuf>,
pub tls_identity_password: Option<String>,
pub override_project_ids: bool,
}
Expand description
Relay specific configuration values.
Fields§
§mode: RelayMode
The operation mode of this relay.
instance: RelayInstance
The instance type of this relay.
upstream: UpstreamDescriptor<'static>
The upstream relay or sentry instance.
host: IpAddr
The host the relay should bind to (network interface).
port: u16
The port to bind for the unencrypted relay HTTP server.
tls_port: Option<u16>
Optional port to bind for the encrypted relay HTTPS server.
tls_identity_path: Option<PathBuf>
The path to the identity (DER-encoded PKCS12) to use for TLS.
tls_identity_password: Option<String>
Password for the PKCS12 archive.
override_project_ids: bool
Always override project IDs from the URL and DSN with the identifier used at the upstream.
Enable this setting for Relays used to redirect traffic to a migrated Sentry instance. Validation of project identifiers can be safely skipped in these cases.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Relay
impl<'de> Deserialize<'de> for Relay
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Relay
impl RefUnwindSafe for Relay
impl Send for Relay
impl Sync for Relay
impl Unpin for Relay
impl UnwindSafe for Relay
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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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