pub struct ConnectionOptions {
pub certificate: String,
pub conn_timeout_ms: u32,
pub io_timeout_ms: u32,
}Expand description
Options used to configure the connection settings.
Fields§
§certificate: StringPath to the TLS certificate used for secure communication.
conn_timeout_ms: u32Connection timeout in milliseconds.
io_timeout_ms: u32I/O timeout in milliseconds.
Implementations§
Source§impl ConnectionOptions
impl ConnectionOptions
Sourcepub fn new(
certificate: String,
conn_timeout_ms: u32,
io_timeout_ms: u32,
) -> Self
pub fn new( certificate: String, conn_timeout_ms: u32, io_timeout_ms: u32, ) -> Self
Creates a new ConnectionOptions instance.
§Arguments:
certificate- Path to the TLS certificate.conn_timeout_ms- Timeout value for connection establishment, in milliseconds.io_timeout_ms- Timeout value for I/O operations, in milliseconds.
Trait Implementations§
Source§impl Clone for ConnectionOptions
impl Clone for ConnectionOptions
Source§fn clone(&self) -> ConnectionOptions
fn clone(&self) -> ConnectionOptions
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 moreAuto Trait Implementations§
impl Freeze for ConnectionOptions
impl RefUnwindSafe for ConnectionOptions
impl Send for ConnectionOptions
impl Sync for ConnectionOptions
impl Unpin for ConnectionOptions
impl UnwindSafe for ConnectionOptions
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