pub enum ConnectWaitMode {
Deferred,
Timeout(Duration),
Unbounded,
}Expand description
Describes how a client connection operation should wait for the server to accept it.
Variants§
Deferred
The connection operation returns immediately. Subsequent I/O operations will block until the connection actually becomes established. If a connection error occurs in the background, that error will be returned by the next I/O operation on the returned object.
Timeout(Duration)
A wait state is entered until the connection becomes established which lasts for up to the
given amount of time. An error of kind TimedOut is
returned if it does not become established within that timeframe.
Unbounded
A wait state is entered until the connection becomes established. This wait state may last for an indefinite amount of time.
Trait Implementations§
Source§impl Clone for ConnectWaitMode
impl Clone for ConnectWaitMode
Source§fn clone(&self) -> ConnectWaitMode
fn clone(&self) -> ConnectWaitMode
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 ConnectWaitMode
impl Debug for ConnectWaitMode
Source§impl Default for ConnectWaitMode
impl Default for ConnectWaitMode
Source§fn default() -> ConnectWaitMode
fn default() -> ConnectWaitMode
Returns the “default value” for a type. Read more
impl Copy for ConnectWaitMode
Auto Trait Implementations§
impl Freeze for ConnectWaitMode
impl RefUnwindSafe for ConnectWaitMode
impl Send for ConnectWaitMode
impl Sync for ConnectWaitMode
impl Unpin for ConnectWaitMode
impl UnsafeUnpin for ConnectWaitMode
impl UnwindSafe for ConnectWaitMode
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