pub struct SocketIO {
pub socket_server: Arc<SocketServer>,
pub socket_config: Arc<SocketConfig>,
}Fields§
§socket_server: Arc<SocketServer>§socket_config: Arc<SocketConfig>Implementations§
Source§impl SocketIO
impl SocketIO
pub fn new() -> Self
pub fn config(&mut self, socket_config: SocketConfig) -> &mut Self
Sourcepub fn connect(&self, req: &HttpRequest, stream: Payload) -> SocketIOResult
pub fn connect(&self, req: &HttpRequest, stream: Payload) -> SocketIOResult
建立连接
Auto Trait Implementations§
impl Freeze for SocketIO
impl !RefUnwindSafe for SocketIO
impl Send for SocketIO
impl Sync for SocketIO
impl Unpin for SocketIO
impl !UnwindSafe for SocketIO
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