We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fc473f commit 7cc1026Copy full SHA for 7cc1026
src/smtp_client.rs
@@ -123,6 +123,21 @@ impl<S: BufRead + Write + Unpin> SmtpTransport<S> {
123
Ok(transport)
124
}
125
126
+ /// Gets a mutable reference to the underlying `SmtpStream`.
127
+ pub fn get_mut(&mut self) -> &mut SmtpStream<S> {
128
+ &mut self.stream
129
+ }
130
+
131
+ /// Gets a reference to the underlying `SmtpStream``.
132
+ pub fn get_ref(&mut self) -> &SmtpStream<S> {
133
+ &self.stream
134
135
136
+ /// Consumes the SMTP transport and returns the inner `SmtpStream`.
137
+ pub fn into_inner(self) -> SmtpStream<S> {
138
+ self.stream
139
140
141
/// Try to login with the given accepted mechanisms.
142
pub async fn try_login(
143
&mut self,
0 commit comments