[−][src]Struct async_pop3::POP3Stream
The stream to use for interfacing with the POP3 Server.
Fields
is_authenticated: bool
Implementations
impl POP3Stream
[src]
pub async fn connect<A: ToSocketAddrs, '_>(
addr: A,
ssl_context: Option<TlsConnector>,
domain: &'_ str
) -> Result<POP3Stream>
[src]
addr: A,
ssl_context: Option<TlsConnector>,
domain: &'_ str
) -> Result<POP3Stream>
Creates a new POP3Stream.
pub async fn login<'_, '_, '_>(
&'_ mut self,
username: &'_ str,
password: &'_ str
) -> POP3Result
[src]
&'_ mut self,
username: &'_ str,
password: &'_ str
) -> POP3Result
Login to the POP3 server.
pub async fn stat<'_>(&'_ mut self) -> POP3Result
[src]
Gives the current number of messages in the mailbox and the total size in bytes of the mailbox.
pub async fn uidl<'_>(&'_ mut self, message_number: Option<i32>) -> POP3Result
[src]
pub async fn list<'_>(&'_ mut self, message_number: Option<i32>) -> POP3Result
[src]
List displays a summary of messages where each message number is shown and the size of the message in bytes.
pub async fn retr<'_>(&'_ mut self, message_id: i32) -> POP3Result
[src]
retrieves the message of the message id given.
pub async fn dele<'_>(&'_ mut self, message_id: i32) -> POP3Result
[src]
Delete the message with the given message id.
pub async fn rset<'_>(&'_ mut self) -> POP3Result
[src]
This resets the session to its original state.
pub async fn quit<'_>(&'_ mut self) -> POP3Result
[src]
Quits the current session.
pub async fn noop<'_>(&'_ mut self) -> POP3Result
[src]
Doesn't do anything. This is usually just used to keep the connection open.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for POP3Stream
impl Send for POP3Stream
impl Sync for POP3Stream
impl Unpin for POP3Stream
impl UnwindSafe for POP3Stream
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,