Struct deltachat::configure::server_params::ServerParams
source · pub(crate) struct ServerParams {
pub protocol: Protocol,
pub hostname: String,
pub port: u16,
pub socket: Socket,
pub username: String,
pub strict_tls: Option<bool>,
}
Expand description
Set of variable parameters to try during configuration.
Can be loaded from offline provider database, online configuration or derived from user entered parameters.
Fields§
§protocol: Protocol
Protocol, such as IMAP or SMTP.
hostname: String
Server hostname, empty if unknown.
port: u16
Server port, zero if unknown.
socket: Socket
Socket security, such as TLS or STARTTLS, Socket::Automatic if unknown.
username: String
Username, empty if unknown.
strict_tls: Option<bool>
Whether TLS certificates should be strictly checked or not, None
for automatic.
Implementations§
source§impl ServerParams
impl ServerParams
fn expand_usernames(self, addr: &str) -> Vec<ServerParams>
fn expand_hostnames(self, param_domain: &str) -> Vec<ServerParams>
fn expand_ports(self) -> Vec<ServerParams>
fn expand_strict_tls(self) -> Vec<ServerParams>
Trait Implementations§
source§impl Clone for ServerParams
impl Clone for ServerParams
source§fn clone(&self) -> ServerParams
fn clone(&self) -> ServerParams
Returns a copy of the value. Read more
1.0.0 · 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 ServerParams
impl Debug for ServerParams
source§impl PartialEq for ServerParams
impl PartialEq for ServerParams
source§fn eq(&self, other: &ServerParams) -> bool
fn eq(&self, other: &ServerParams) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ServerParams
Auto Trait Implementations§
impl RefUnwindSafe for ServerParams
impl Send for ServerParams
impl Sync for ServerParams
impl Unpin for ServerParams
impl UnwindSafe for ServerParams
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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