Struct panorama_imap::client::ClientConfig[][src]

pub struct ClientConfig {
    hostname: String,
    port: u16,
    tls: bool,
}

An IMAP client that hasn't been connected yet.

Fields

hostname: String

The hostname of the IMAP server. If using TLS, must be an address

port: u16

The port of the IMAP server.

tls: bool

Whether or not the client is using an encrypted stream.

To upgrade the connection later, use the upgrade method.

Implementations

impl ClientConfig[src]

pub async fn open(self) -> Result<ClientUnauthenticated>[src]

Trait Implementations

impl Clone for ClientConfig[src]

impl Debug for ClientConfig[src]

Auto Trait Implementations

impl RefUnwindSafe for ClientConfig[src]

impl Send for ClientConfig[src]

impl Sync for ClientConfig[src]

impl Unpin for ClientConfig[src]

impl UnwindSafe for ClientConfig[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.