pub struct MssqlTimeoutOptions {
pub connect_timeout: Option<Duration>,
pub query_timeout: Option<Duration>,
pub acquire_timeout: Option<Duration>,
}Fields§
§connect_timeout: Option<Duration>§query_timeout: Option<Duration>§acquire_timeout: Option<Duration>Implementations§
Source§impl MssqlTimeoutOptions
impl MssqlTimeoutOptions
pub fn new() -> Self
pub fn with_connect_timeout(self, timeout: Duration) -> Self
pub fn with_query_timeout(self, timeout: Duration) -> Self
pub fn with_acquire_timeout(self, timeout: Duration) -> Self
Trait Implementations§
Source§impl Clone for MssqlTimeoutOptions
impl Clone for MssqlTimeoutOptions
Source§fn clone(&self) -> MssqlTimeoutOptions
fn clone(&self) -> MssqlTimeoutOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MssqlTimeoutOptions
impl Debug for MssqlTimeoutOptions
Source§impl Default for MssqlTimeoutOptions
impl Default for MssqlTimeoutOptions
Source§fn default() -> MssqlTimeoutOptions
fn default() -> MssqlTimeoutOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for MssqlTimeoutOptions
impl PartialEq for MssqlTimeoutOptions
Source§fn eq(&self, other: &MssqlTimeoutOptions) -> bool
fn eq(&self, other: &MssqlTimeoutOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for MssqlTimeoutOptions
impl Eq for MssqlTimeoutOptions
impl StructuralPartialEq for MssqlTimeoutOptions
Auto Trait Implementations§
impl Freeze for MssqlTimeoutOptions
impl RefUnwindSafe for MssqlTimeoutOptions
impl Send for MssqlTimeoutOptions
impl Sync for MssqlTimeoutOptions
impl Unpin for MssqlTimeoutOptions
impl UnsafeUnpin for MssqlTimeoutOptions
impl UnwindSafe for MssqlTimeoutOptions
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