pub struct Net {
pub connect_timeout: u64,
pub timeout: u64,
pub system_cas: bool,
pub certificate_file: Option<String>,
}Expand description
How long to wait on the network before saying so. A mail client that blocks has nothing to draw and no keys to read, so these are short by default: an unreachable server should cost seconds, not the OS default of about two minutes.
Fields§
§connect_timeout: u64Seconds to wait for a connection (mutt’s $connect_timeout). 0 waits as long as the OS does.
timeout: u64Seconds to wait for data on a live connection. Never off: IMAP IDLE uses it as its heartbeat, and anything under five seconds is treated as five.
system_cas: boolmutt’s $ssl_usesystemcerts: trust the OS certificate store on top of the built-in Mozilla roots. On by default, as in mutt.
certificate_file: Option<String>mutt’s $certificate_file: a PEM file of extra roots to trust (a private CA, a self-signed server’s own cert). Added to the Mozilla roots, never replacing them.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Net
impl<'de> Deserialize<'de> for Net
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 Net
impl RefUnwindSafe for Net
impl Send for Net
impl Sync for Net
impl Unpin for Net
impl UnsafeUnpin for Net
impl UnwindSafe for Net
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