Struct panorama_imap::client::ClientConfigBuilder[][src]

pub struct ClientConfigBuilder {
    hostname: Option<String>,
    port: Option<u16>,
    tls: Option<bool>,
}

Builder for ClientConfig.

Fields

hostname: Option<String>

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

port: Option<u16>

The port of the IMAP server.

tls: Option<bool>

Whether or not the client is using an encrypted stream.

To upgrade the connection later, use the upgrade method.

Implementations

impl ClientConfigBuilder[src]

pub fn hostname(&mut self, value: String) -> &mut Self[src]

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

pub fn port(&mut self, value: u16) -> &mut Self[src]

The port of the IMAP server.

pub fn tls(&mut self, value: bool) -> &mut Self[src]

Whether or not the client is using an encrypted stream.

To upgrade the connection later, use the upgrade method.

pub fn build(&self) -> Result<ClientConfig, String>[src]

Builds a new ClientConfig.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for ClientConfigBuilder[src]

impl Default for ClientConfigBuilder[src]

Auto Trait Implementations

impl RefUnwindSafe for ClientConfigBuilder[src]

impl Send for ClientConfigBuilder[src]

impl Sync for ClientConfigBuilder[src]

impl Unpin for ClientConfigBuilder[src]

impl UnwindSafe for ClientConfigBuilder[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.