File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,12 @@ impl<A: Adapter> From<Arc<Socket<A>>> for SocketRef<A> {
227
227
}
228
228
}
229
229
230
+ impl < A : Adapter > Clone for SocketRef < A > {
231
+ fn clone ( & self ) -> Self {
232
+ Self ( self . 0 . clone ( ) )
233
+ }
234
+ }
235
+
230
236
impl < A : Adapter > SocketRef < A > {
231
237
/// Disconnect the socket from the current namespace,
232
238
///
@@ -378,7 +384,7 @@ mod state_extract {
378
384
379
385
/// An Extractor that contains a reference to a state previously set with [`SocketIoBuilder::with_state`](crate::io::SocketIoBuilder).
380
386
/// It implements [`std::ops::Deref`] to access the inner type so you can use it as a normal reference.
381
- ///
387
+ ///
382
388
/// The specified state type must be the same as the one set with [`SocketIoBuilder::with_state`](crate::io::SocketIoBuilder).
383
389
/// If it is not the case, the handler won't be called and an error log will be print if the `tracing` feature is enabled.
384
390
///
You can’t perform that action at this time.
0 commit comments