[][src]Struct async_pop3::POP3Stream

pub struct POP3Stream {
    pub is_authenticated: bool,
    // some fields omitted
}

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]

Creates a new POP3Stream.

pub async fn login<'_, '_, '_>(
    &'_ mut self,
    username: &'_ str,
    password: &'_ str
) -> POP3Result
[src]

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

impl Debug for POP3Stream[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.