#[non_exhaustive]pub struct Context<'a> {
pub inflight_handshakes: usize,
pub connection_count: usize,
pub remote_address: SocketAddress<'a>,
pub is_handshaking: bool,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.inflight_handshakes: usize
Number of handshakes that have begun but not completed
connection_count: usize
Number of open connections
remote_address: SocketAddress<'a>
The address of the peer
is_handshaking: bool
True if the connection is in the handshake state, false otherwise
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> UnwindSafe for Context<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more