pub struct ConnectOptions<T> { /* private fields */ }
Expand description
Connect options
Implementations§
Source§impl<T> ConnectOptions<T>
impl<T> ConnectOptions<T>
Sourcepub const fn with_async(self) -> Self
pub const fn with_async(self) -> Self
Sets async mode, making connection to be performed in background
By default, connection blocks, until socket is connected to the remote peer.
Sourcepub const fn with_dialer<R: Options<Dialer>>(
&self,
dialer: R,
) -> ConnectOptions<R>
pub const fn with_dialer<R: Options<Dialer>>( &self, dialer: R, ) -> ConnectOptions<R>
Creates new options with custom dialer options
This is useful to provide TLS config
Trait Implementations§
Source§impl<T: Clone> Clone for ConnectOptions<T>
impl<T: Clone> Clone for ConnectOptions<T>
Source§fn clone(&self) -> ConnectOptions<T>
fn clone(&self) -> ConnectOptions<T>
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<T: Default> Default for ConnectOptions<T>
impl<T: Default> Default for ConnectOptions<T>
Source§fn default() -> ConnectOptions<T>
fn default() -> ConnectOptions<T>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<T> Freeze for ConnectOptions<T>where
T: Freeze,
impl<T> RefUnwindSafe for ConnectOptions<T>where
T: RefUnwindSafe,
impl<T> Send for ConnectOptions<T>where
T: Send,
impl<T> Sync for ConnectOptions<T>where
T: Sync,
impl<T> Unpin for ConnectOptions<T>where
T: Unpin,
impl<T> UnwindSafe for ConnectOptions<T>where
T: UnwindSafe,
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