pub struct HandshakeAttempt {
pub client_id: ClientId,
pub session_id: SessionId,
pub cycle_id: CycleId,
pub attempt_id: AttemptId,
pub metadata: Arc<Metadata>,
}Expand description
Identity and caller metadata for one handshake attempt, exposed to dynamic
header callbacks and connection events. Debug reports only the metadata
entry count and never its contents.
Fields§
§client_id: ClientIdThe ID of the client instance that initiated the handshake.
session_id: SessionIdThe connection session ID to which this attempt belongs.
cycle_id: CycleIdThe connection or reconnection cycle identifier to which this attempt belongs.
attempt_id: AttemptIdIdentifies this specific handshake attempt.
metadata: Arc<Metadata>Shared metadata inherited from connection options; the SDK does not automatically send this as a request header.
Trait Implementations§
Source§impl Clone for HandshakeAttempt
impl Clone for HandshakeAttempt
Auto Trait Implementations§
impl Freeze for HandshakeAttempt
impl RefUnwindSafe for HandshakeAttempt
impl Send for HandshakeAttempt
impl Sync for HandshakeAttempt
impl Unpin for HandshakeAttempt
impl UnsafeUnpin for HandshakeAttempt
impl UnwindSafe for HandshakeAttempt
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