Struct vsmtp_protocol::AcceptArgs
#[non_exhaustive]pub struct AcceptArgs {
pub client_addr: SocketAddr,
pub server_addr: SocketAddr,
pub timestamp: OffsetDateTime,
pub uuid: Uuid,
pub kind: ConnectionKind,
}Expand description
Information received from the client at the connection TCP/IP.
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.client_addr: SocketAddrAddress of the server which accepted the connection.
server_addr: SocketAddrPeer address of the connection.
timestamp: OffsetDateTimeInstant when the connection was accepted.
uuid: UuidUniversal unique identifier of the connection.
kind: ConnectionKindKind of connection.
Implementations§
§impl AcceptArgs
impl AcceptArgs
pub const fn new(
client_addr: SocketAddr,
server_addr: SocketAddr,
timestamp: OffsetDateTime,
uuid: Uuid,
kind: ConnectionKind
) -> Self
pub const fn new( client_addr: SocketAddr, server_addr: SocketAddr, timestamp: OffsetDateTime, uuid: Uuid, kind: ConnectionKind ) -> Self
Create a new instance.