pub struct ConfigGenerator { /* private fields */ }Expand description
Client configuration generator
Implementations§
Source§impl ConfigGenerator
impl ConfigGenerator
Sourcepub fn new(
server_config: ServerConfig,
ca: CertificateAuthority,
ta_key: Option<String>,
) -> Self
pub fn new( server_config: ServerConfig, ca: CertificateAuthority, ta_key: Option<String>, ) -> Self
Create a new config generator
Sourcepub fn generate_client_config(
&self,
username: &str,
email: Option<&str>,
) -> Result<GeneratedConfig>
pub fn generate_client_config( &self, username: &str, email: Option<&str>, ) -> Result<GeneratedConfig>
Generate client configuration
Sourcepub fn generate_mobile_config(
&self,
username: &str,
email: Option<&str>,
) -> Result<GeneratedConfig>
pub fn generate_mobile_config( &self, username: &str, email: Option<&str>, ) -> Result<GeneratedConfig>
Generate mobile-optimized client configuration
Auto Trait Implementations§
impl Freeze for ConfigGenerator
impl !RefUnwindSafe for ConfigGenerator
impl Send for ConfigGenerator
impl Sync for ConfigGenerator
impl Unpin for ConfigGenerator
impl !UnwindSafe for ConfigGenerator
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