pub struct KexReader { /* private fields */ }Expand description
The key exchange reader for the moshpit
Implementations§
Source§impl KexReader
impl KexReader
Sourcepub async fn client_kex(&mut self) -> Result<()>
pub async fn client_kex(&mut self) -> Result<()>
Perform the client side of a key exchange
§Errors
Sourcepub async fn server_kex(
&mut self,
socket_addr: SocketAddr,
port_pool: Arc<Mutex<BTreeSet<u16>>>,
public_key_path: &PathBuf,
session_registry: Option<SessionRegistry>,
) -> Result<(ServerKex, Arc<UdpSocket>)>
pub async fn server_kex( &mut self, socket_addr: SocketAddr, port_pool: Arc<Mutex<BTreeSet<u16>>>, public_key_path: &PathBuf, session_registry: Option<SessionRegistry>, ) -> Result<(ServerKex, Arc<UdpSocket>)>
Perform the server side of a key exchange
§Errors
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KexReader
impl !RefUnwindSafe for KexReader
impl Send for KexReader
impl Sync for KexReader
impl Unpin for KexReader
impl UnsafeUnpin for KexReader
impl !UnwindSafe for KexReader
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