pub struct SocketIo { /* private fields */ }
Expand description
SocketIo
manages WebSocket communication for handling RPC events.
It utilizes WebSocket technology to facilitate real-time communication, providing mechanisms for sending requests and receiving responses.
Additionally, it supports RPC cancellation and timeout functionality, allowing for better control over ongoing operations.
The struct efficiently manages concurrent RPC events and notifies clients of relevant occurrences.
Implementations§
Source§impl SocketIo
impl SocketIo
Sourcepub async fn notify(
&mut self,
name: &str,
data: impl AsRef<[u8]>,
) -> Result<(), NotifyError>
pub async fn notify( &mut self, name: &str, data: impl AsRef<[u8]>, ) -> Result<(), NotifyError>
Sends a notification with the given name and data.
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