pub struct ServerSettings {
pub scheme: String,
pub host: String,
pub port: u16,
pub auth: Option<Auth>,
pub server_certificate: Option<PathBuf>,
pub certificate: Option<PathBuf>,
pub certificate_key: Option<PathBuf>,
pub key_password: Option<String>,
}Expand description
Server connection settings.
Fields§
§scheme: StringConnection scheme: “tcp”, “ws”, or “wss”.
host: StringServer hostname or IP.
port: u16Server port.
auth: Option<Auth>Optional authentication.
server_certificate: Option<PathBuf>Server CA certificate for TLS verification.
certificate: Option<PathBuf>Client certificate (PEM).
certificate_key: Option<PathBuf>Client private key (PEM).
key_password: Option<String>Password for encrypted private key.
Trait Implementations§
Source§impl Clone for ServerSettings
impl Clone for ServerSettings
Source§fn clone(&self) -> ServerSettings
fn clone(&self) -> ServerSettings
Returns a duplicate 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 ServerSettings
impl Debug for ServerSettings
Auto Trait Implementations§
impl Freeze for ServerSettings
impl RefUnwindSafe for ServerSettings
impl Send for ServerSettings
impl Sync for ServerSettings
impl Unpin for ServerSettings
impl UnsafeUnpin for ServerSettings
impl UnwindSafe for ServerSettings
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