pub struct Configuration {
pub hostname: String,
pub port: u16,
pub username: String,
pub authentication: AuthenticationType,
pub timeout: u32,
pub compress: bool,
pub trust_host: bool,
}
Fields§
§hostname: String
§port: u16
§username: String
§authentication: AuthenticationType
§timeout: u32
§compress: bool
§trust_host: bool
Implementations§
Source§impl Configuration
impl Configuration
pub fn new(hostname: &str) -> Self
pub fn with_port(self, port: u16) -> Self
pub fn with_username(self, username: &str) -> Self
pub fn with_authentication(self, authentication: AuthenticationType) -> Self
pub fn with_timeout_ms(self, timeout: u32) -> Self
pub fn with_compression(self, compress: bool) -> Self
pub fn with_host_trust(self, trust_host: bool) -> Self
Trait Implementations§
Source§impl Clone for Configuration
impl Clone for Configuration
Source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
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 moreAuto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
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