[][src]Struct mailme::pop3::POP3Client

pub struct POP3Client {
    pub host: String,
    pub port: u16,
    pub is_auth: bool,
    // some fields omitted
}

Fields

host: Stringport: u16is_auth: bool

Implementations

impl POP3Client[src]

pub async fn new_basic<'_>(host: &'_ str, port: u16) -> Result<Self, Pop3Error>[src]

pub async fn new_tls<'_>(host: &'_ str, port: u16) -> Result<Self, Pop3Error>[src]

pub async fn read_welcome<'_>(&'_ mut self) -> Result<String, Pop3Error>[src]

pub async fn user<'_, '_>(&'_ mut self, name: &'_ str) -> Result<(), Pop3Error>[src]

pub async fn pass<'_, '_>(
    &'_ mut self,
    passwd: &'_ str
) -> Result<(), Pop3Error>
[src]

pub async fn stat<'_>(&'_ mut self) -> Result<POP3Status, Pop3Error>[src]

pub async fn list_one<'_>(
    &'_ mut self,
    msg_id: usize
) -> Result<POP3EmailMeta, Pop3Error>
[src]

pub async fn list<'_>(&'_ mut self) -> Result<Vec<POP3EmailMeta>, Pop3Error>[src]

pub async fn retr<'_>(&'_ mut self, msg_id: usize) -> Result<String, Pop3Error>[src]

pub async fn dele<'_>(&'_ mut self, msg_id: usize) -> Result<String, Pop3Error>[src]

pub async fn noop<'_>(&'_ mut self) -> Result<String, Pop3Error>[src]

pub async fn rset<'_>(&'_ mut self) -> Result<String, Pop3Error>[src]

pub async fn quit<'_>(&'_ mut self) -> Result<String, Pop3Error>[src]

pub async fn top<'_>(
    &'_ mut self,
    msg_id: usize,
    num: usize
) -> Result<String, Pop3Error>
[src]

pub async fn uidl<'_>(&'_ mut self) -> Result<Vec<POP3UidlData>, Pop3Error>[src]

pub async fn uidl_one<'_>(
    &'_ mut self,
    msg_id: usize
) -> Result<POP3UidlData, Pop3Error>
[src]

pub async fn capa<'_>(&'_ mut self) -> Result<String, Pop3Error>[src]

pub async fn apop<'_, '_, '_>(
    &'_ mut self,
    name: &'_ str,
    digest: &'_ str
) -> Result<String, Pop3Error>
[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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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.