Struct vsmtp_protocol::ReceiverContext
pub struct ReceiverContext { /* private fields */ }Expand description
An handle to send event from the ReceiverHandler to the Receiver.
Implementations§
§impl ReceiverContext
impl ReceiverContext
pub fn upgrade_tls(
&mut self,
config: Arc<ServerConfig>,
handshake_timeout: Duration
)
pub fn upgrade_tls( &mut self, config: Arc<ServerConfig>, handshake_timeout: Duration )
Make the Receiver initialize a TLS handshake.
Trait Implementations§
§impl Default for ReceiverContext
impl Default for ReceiverContext
§fn default() -> ReceiverContext
fn default() -> ReceiverContext
Returns the “default value” for a type. Read more