pub struct NoiseClientConfig {
pub keypair: Keypair,
pub psk: Option<[u8; 32]>,
pub keylogger: Option<Arc<dyn KeyLog>>,
pub remote_public_key: PublicKey,
pub alpn: 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
.
remote_public_key: PublicKey
The remote public key. This needs to be set.
alpn: Vec<u8>
ALPN string to use.
Trait Implementations§
Source§impl From<NoiseClientConfig> for NoiseConfig
impl From<NoiseClientConfig> for NoiseConfig
Source§fn from(config: NoiseClientConfig) -> Self
fn from(config: NoiseClientConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NoiseClientConfig
impl !RefUnwindSafe for NoiseClientConfig
impl Send for NoiseClientConfig
impl Sync for NoiseClientConfig
impl Unpin for NoiseClientConfig
impl !UnwindSafe for NoiseClientConfig
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