pub struct ImapServerConfig {
pub host: String,
pub port: u16,
pub tls_port: Option<u16>,
}Expand description
IMAP4rev1 server listener configuration.
Fields§
§host: StringRequired. IP address or hostname on which the IMAP listener binds
(e.g. "0.0.0.0" for all interfaces).
port: u16Required. IMAP port number (typically 143). Must be in 1–65535.
tls_port: Option<u16>Default: None. IMAPS (implicit TLS) port number, typically 993.
Requires a [tls] section to be configured.
Trait Implementations§
Source§impl Clone for ImapServerConfig
impl Clone for ImapServerConfig
Source§fn clone(&self) -> ImapServerConfig
fn clone(&self) -> ImapServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ImapServerConfig
impl Debug for ImapServerConfig
Source§impl<'de> Deserialize<'de> for ImapServerConfig
impl<'de> Deserialize<'de> for ImapServerConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ImapServerConfig
impl RefUnwindSafe for ImapServerConfig
impl Send for ImapServerConfig
impl Sync for ImapServerConfig
impl Unpin for ImapServerConfig
impl UnsafeUnpin for ImapServerConfig
impl UnwindSafe for ImapServerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more