#[non_exhaustive]pub struct TransportOptions {
pub dsn: Dsn,
pub user_agent: Cow<'static, str>,
pub http_proxy: Option<Cow<'static, str>>,
pub https_proxy: Option<Cow<'static, str>>,
pub accept_invalid_certs: bool,
pub client_report_recorder: Recorder,
}Expand description
Options for a transport.
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.dsn: DsnThe transport’s Sentry DSN.
user_agent: Cow<'static, str>The user agent sent with transport requests.
http_proxy: Option<Cow<'static, str>>An optional HTTP proxy to use.
https_proxy: Option<Cow<'static, str>>An optional HTTPS proxy to use.
accept_invalid_certs: boolWhether TLS certificate validation should be disabled.
client_report_recorder: RecorderA handle for recording lost Sentry data.
Implementations§
Source§impl TransportOptions
impl TransportOptions
Sourcepub fn try_from_client_options(options: &ClientOptions) -> Option<Self>
pub fn try_from_client_options(options: &ClientOptions) -> Option<Self>
Try to convert a &ClientOptions to a TransportOptions by extracting
the relevant fields from the ClientOptions.
This method is provided so that code which expects TransportOptions can be
backwards-compatible with older code, which provides ClientOptions.
Returns None if options.dsn is None, Some(_) otherwise.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TransportOptions
impl RefUnwindSafe for TransportOptions
impl Send for TransportOptions
impl Sync for TransportOptions
impl Unpin for TransportOptions
impl UnsafeUnpin for TransportOptions
impl UnwindSafe for TransportOptions
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