Struct gmt_dos_clients_transceiver::Crypto
source · pub struct Crypto { /* private fields */ }
Expand description
Transceiver encryption settings
The settings for the communication encryption consists in:
- the certificate file name:
gmt_dos-clients_transceiver_cert.der
- the private key file name:
gmt_dos-clients_transceiver_key.der
- the server name:
gmt_dos-clients_transceiver
Implementations§
source§impl Crypto
impl Crypto
pub fn builder() -> CryptoBuilder
sourcepub fn generate(&self) -> Result<()>
pub fn generate(&self) -> Result<()>
Generates the certificate and the private key
The cerficate and the private key are written to the specified files
sourcepub fn server(&self) -> Result<ServerConfig>
pub fn server(&self) -> Result<ServerConfig>
Returns quinn server configuration
sourcepub fn client(&self) -> Result<ClientConfig>
pub fn client(&self) -> Result<ClientConfig>
Returns quinn client configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Crypto
impl RefUnwindSafe for Crypto
impl Send for Crypto
impl Sync for Crypto
impl Unpin for Crypto
impl UnwindSafe for Crypto
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