pub struct ConnectConfig {
pub host: String,
pub port: u16,
pub username: String,
pub password: Option<String>,
pub tokens: Vec<String>,
pub identity: Option<ClientIdentity>,
pub verify_cert: CertVerifier,
pub login_timeout: Duration,
}Expand description
Everything needed to open a connection.
Fields§
§host: String§port: u16§username: String§password: Option<String>Server or user password.
tokens: Vec<String>Access tokens (channel passwords) the server matches against #token ACL groups.
identity: Option<ClientIdentity>Client certificate; without one the user cannot register.
verify_cert: CertVerifierTrust decision for the server certificate (see crate::tls::ServerCert).
login_timeout: DurationUpper bound for TCP connect + TLS + login.
Auto Trait Implementations§
impl !RefUnwindSafe for ConnectConfig
impl !UnwindSafe for ConnectConfig
impl Forget for ConnectConfig
impl Freeze for ConnectConfig
impl Move for ConnectConfig
impl Send for ConnectConfig
impl Sync for ConnectConfig
impl Unpin for ConnectConfig
impl UnsafeUnpin for ConnectConfig
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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