pub struct NoiseServerConfig {
pub keypair: Keypair,
pub psk: Option<[u8; 32]>,
pub keylogger: Option<Arc<dyn KeyLog>>,
pub supported_protocols: Vec<Vec<u8>>,
}
Fields§
§keypair: Keypair
Keypair to use.
psk: Option<[u8; 32]>
Optional private shared key usable as a password for private networks.
keylogger: Option<Arc<dyn KeyLog>>
Enables keylogging for debugging purposes to the path provided by SSLKEYLOGFILE
.
supported_protocols: Vec<Vec<u8>>
Supported ALPN identifiers.
Trait Implementations§
Source§impl From<NoiseServerConfig> for NoiseConfig
impl From<NoiseServerConfig> for NoiseConfig
Source§fn from(config: NoiseServerConfig) -> Self
fn from(config: NoiseServerConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NoiseServerConfig
impl !RefUnwindSafe for NoiseServerConfig
impl Send for NoiseServerConfig
impl Sync for NoiseServerConfig
impl Unpin for NoiseServerConfig
impl !UnwindSafe for NoiseServerConfig
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