mirror of
https://github.com/MercuryWorkshop/epoxy-tls.git
synced 2025-05-17 16:10:01 -04:00
finally implement AsyncRead/Write
This commit is contained in:
parent
14ddecf3fd
commit
be7d92b4c5
4 changed files with 103 additions and 7 deletions
|
@ -57,9 +57,7 @@ pub trait WebSocketWrite {
|
|||
) -> impl std::future::Future<Output = Result<(), crate::WispError>>;
|
||||
}
|
||||
|
||||
pub struct LockedWebSocketWrite<S>(Arc<Mutex<S>>)
|
||||
where
|
||||
S: WebSocketWrite;
|
||||
pub struct LockedWebSocketWrite<S>(Arc<Mutex<S>>);
|
||||
|
||||
impl<S: WebSocketWrite> LockedWebSocketWrite<S> {
|
||||
pub fn new(ws: S) -> Self {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue