pub struct ConnectContext {
pub attempt: u32,
}Expand description
Information supplied to a Connector for one connection attempt.
Fields§
§attempt: u32Zero-based connection-attempt number for the current connection cycle.
Trait Implementations§
Source§impl Clone for ConnectContext
impl Clone for ConnectContext
Source§fn clone(&self) -> ConnectContext
fn clone(&self) -> ConnectContext
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 ConnectContext
impl Debug for ConnectContext
Source§impl PartialEq for ConnectContext
impl PartialEq for ConnectContext
Source§fn eq(&self, other: &ConnectContext) -> bool
fn eq(&self, other: &ConnectContext) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ConnectContext
impl Eq for ConnectContext
impl StructuralPartialEq for ConnectContext
Auto Trait Implementations§
impl Freeze for ConnectContext
impl RefUnwindSafe for ConnectContext
impl Send for ConnectContext
impl Sync for ConnectContext
impl Unpin for ConnectContext
impl UnsafeUnpin for ConnectContext
impl UnwindSafe for ConnectContext
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