pub struct NoiseConfig { /* private fields */ }
Expand description
Noise configuration struct.
Trait Implementations§
Source§impl ClientConfig for NoiseConfig
impl ClientConfig for NoiseConfig
Source§fn start_session(
self: Arc<Self>,
version: u32,
server_name: &str,
params: &TransportParameters,
) -> Result<Box<dyn Session>, ConnectError>
fn start_session( self: Arc<Self>, version: u32, server_name: &str, params: &TransportParameters, ) -> Result<Box<dyn Session>, ConnectError>
Start a client session with this configuration
Source§impl Clone for NoiseConfig
impl Clone for NoiseConfig
Source§impl Default for NoiseConfig
impl Default for NoiseConfig
Source§fn default() -> NoiseConfig
fn default() -> NoiseConfig
Returns the “default value” for a type. Read more
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.
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.
Source§impl ServerConfig for NoiseConfig
impl ServerConfig for NoiseConfig
Source§fn start_session(
self: Arc<Self>,
version: u32,
params: &TransportParameters,
) -> Box<dyn Session>
fn start_session( self: Arc<Self>, version: u32, params: &TransportParameters, ) -> Box<dyn Session>
Start a server session with this configuration Read more
Source§fn initial_keys(
&self,
version: u32,
dst_cid: &ConnectionId,
side: Side,
) -> Result<Keys, UnsupportedVersion>
fn initial_keys( &self, version: u32, dst_cid: &ConnectionId, side: Side, ) -> Result<Keys, UnsupportedVersion>
Create the initial set of keys given the client’s initial destination ConnectionId
Auto Trait Implementations§
impl Freeze for NoiseConfig
impl !RefUnwindSafe for NoiseConfig
impl Send for NoiseConfig
impl Sync for NoiseConfig
impl Unpin for NoiseConfig
impl !UnwindSafe for NoiseConfig
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