pub struct XtreamClientConfig {
pub connect_timeout: Duration,
pub request_timeout: Duration,
pub accept_invalid_certs: bool,
pub preferred_format: StreamFormat,
}Expand description
Client configuration with timeouts and TLS settings.
Fields§
§connect_timeout: DurationTCP connect timeout (default: 15 s).
request_timeout: DurationTotal request timeout (default: 120 s).
accept_invalid_certs: boolAccept invalid / self-signed TLS certificates.
preferred_format: StreamFormatPreferred stream format (default: TS).
Trait Implementations§
Source§impl Clone for XtreamClientConfig
impl Clone for XtreamClientConfig
Source§fn clone(&self) -> XtreamClientConfig
fn clone(&self) -> XtreamClientConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for XtreamClientConfig
impl Debug for XtreamClientConfig
Auto Trait Implementations§
impl Freeze for XtreamClientConfig
impl RefUnwindSafe for XtreamClientConfig
impl Send for XtreamClientConfig
impl Sync for XtreamClientConfig
impl Unpin for XtreamClientConfig
impl UnsafeUnpin for XtreamClientConfig
impl UnwindSafe for XtreamClientConfig
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