pub(crate) struct ServerParams {
pub protocol: Protocol,
pub hostname: String,
pub port: u16,
pub socket: Socket,
pub username: String,
}
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.
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>
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
impl StructuralPartialEq for ServerParams
Auto Trait Implementations§
impl Freeze for ServerParams
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)