pub struct SocketData {
pub remote_addr: SocketAddr,
pub local_addr: SocketAddr,
pub encrypted: bool,
}
Expand description
Contains information about a network socket, including remote and local addresses, and whether the connection is encrypted.
Fields§
§remote_addr: SocketAddr
The remote address of the socket.
local_addr: SocketAddr
The local address of the socket.
encrypted: bool
Indicates if the connection is encrypted.
Auto Trait Implementations§
impl Freeze for SocketData
impl RefUnwindSafe for SocketData
impl Send for SocketData
impl Sync for SocketData
impl Unpin for SocketData
impl UnwindSafe for SocketData
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