Struct panorama_imap::client::ClientConfigBuilder [−][src]
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]
Trait Implementations
impl Clone for ClientConfigBuilder
[src]
fn clone(&self) -> ClientConfigBuilder
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for ClientConfigBuilder
[src]
fn default() -> 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]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,